/[escript]/trunk/escript/src/DataConstant.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataConstant.cpp

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

revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC revision 2669 by jfenwick, Thu Sep 17 06:01:30 2009 UTC
# Line 99  DataTypes::ValueType::size_type Line 99  DataTypes::ValueType::size_type
99  DataConstant::getPointOffset(int sampleNo,  DataConstant::getPointOffset(int sampleNo,
100                               int dataPointNo) const                               int dataPointNo) const
101  {  {
102    EsysAssert((validSamplePointNo(dataPointNo) && validSampleNo(sampleNo)),  // We avoid this check for constant data due to issues manipulating
103                "Invalid index, sampleNo: " << sampleNo << " dataPointNo: " << dataPointNo);  // data with no samples.
104    
105    //  EsysAssert((validSamplePointNo(dataPointNo) && validSampleNo(sampleNo)),
106    //              "Invalid index, sampleNo: " << sampleNo << " dataPointNo: " << dataPointNo);
107    //    //
108    // Whatever the coord's always return the same value as this is constant data.    // Whatever the coord's always return the same value as this is constant data.
109    return 0;    return 0;
# Line 110  DataTypes::ValueType::size_type Line 113  DataTypes::ValueType::size_type
113  DataConstant::getPointOffset(int sampleNo,  DataConstant::getPointOffset(int sampleNo,
114                               int dataPointNo)                               int dataPointNo)
115  {  {
116    EsysAssert((validSamplePointNo(dataPointNo) && validSampleNo(sampleNo)),  // We avoid this check for constant data due to issues manipulating
117                "Invalid index, sampleNo: " << sampleNo << " dataPointNo: " << dataPointNo);  // data with no samples.
118    
119    //  EsysAssert((validSamplePointNo(dataPointNo) && validSampleNo(sampleNo)),
120    //              "Invalid index, sampleNo: " << sampleNo << " dataPointNo: " << dataPointNo);
121    //    //
122    // Whatever the coord's always return the same value as this is constant data.    // Whatever the coord's always return the same value as this is constant data.
123      //
124    
125    return 0;    return 0;
126  }  }
127    

Legend:
Removed from v.2548  
changed lines
  Added in v.2669

  ViewVC Help
Powered by ViewVC 1.1.26