/[escript]/branches/schroedinger/escript/src/DataConstant.cpp
ViewVC logotype

Diff of /branches/schroedinger/escript/src/DataConstant.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1934 by jfenwick, Thu Oct 9 03:09:30 2008 UTC revision 1935 by jfenwick, Mon Oct 27 06:06:39 2008 UTC
# Line 147  DataConstant::getPointOffset(int sampleN Line 147  DataConstant::getPointOffset(int sampleN
147  }  }
148    
149  DataTypes::ValueType::size_type  DataTypes::ValueType::size_type
150    DataConstant::getPointOffset(int sampleNo,
151                                 int dataPointNo)
152    {
153      EsysAssert((validSamplePointNo(dataPointNo) && validSampleNo(sampleNo)),
154                  "Invalid index, sampleNo: " << sampleNo << " dataPointNo: " << dataPointNo);
155      //
156      // Whatever the coord's always return the same value as this is constant data.
157      return 0;
158    }
159    
160    DataTypes::ValueType::size_type
161  DataConstant::getLength() const  DataConstant::getLength() const
162  {  {
163    return m_data.size();    return m_data.size();

Legend:
Removed from v.1934  
changed lines
  Added in v.1935

  ViewVC Help
Powered by ViewVC 1.1.26