/[escript]/branches/arrayview_from_1695_trunk/escript/src/DataExpanded.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/src/DataExpanded.cpp

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

revision 1720 by jfenwick, Thu Aug 21 04:52:14 2008 UTC revision 1721 by jfenwick, Fri Aug 22 00:39:32 2008 UTC
# Line 755  DataExpanded::setTaggedValue(int tagKey, Line 755  DataExpanded::setTaggedValue(int tagKey,
755  void    void  
756  DataExpanded::setTaggedValue(int tagKey,  DataExpanded::setTaggedValue(int tagKey,
757             const DataTypes::ShapeType& pointshape,             const DataTypes::ShapeType& pointshape,
758                 const DataTypes::ValueType& value)                 const DataTypes::ValueType& value,
759               int dataOffset)
760  {  {
761    int numSamples = getNumSamples();    int numSamples = getNumSamples();
762    int numDataPointsPerSample = getNumDPPSample();    int numDataPointsPerSample = getNumDPPSample();
763    int sampleNo,dataPointNo, i;    int sampleNo,dataPointNo, i;
764    DataTypes::ValueType::size_type n = getNoValues();    DataTypes::ValueType::size_type n = getNoValues();
765    double* p;    double* p;
766    const double* in=&value[0];    const double* in=&value[0+dataOffset];
767        
768    if (value.size() != n) {    if (value.size() != n) {
769      throw DataException("Error - DataExpanded::setTaggedValue: number of input values does not match number of values per data points.");      throw DataException("Error - DataExpanded::setTaggedValue: number of input values does not match number of values per data points.");

Legend:
Removed from v.1720  
changed lines
  Added in v.1721

  ViewVC Help
Powered by ViewVC 1.1.26