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

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

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

revision 1709 by jfenwick, Thu Aug 14 05:35:32 2008 UTC revision 1710 by jfenwick, Fri Aug 15 06:24:20 2008 UTC
# Line 435  DataTagged::getDataByTag(int tag, DataTy Line 435  DataTagged::getDataByTag(int tag, DataTy
435    }    }
436    DataArrayView temp(getPointDataView());    DataArrayView temp(getPointDataView());
437    temp.setOffset(offset);    temp.setOffset(offset);
438    return temp.getData()[i];    return temp.getData()[offset+i];
439  }  }
440    
441    
# Line 449  DataTagged::getDataByTag(int tag, DataTy Line 449  DataTagged::getDataByTag(int tag, DataTy
449    }    }
450    DataArrayView temp(getPointDataView());    DataArrayView temp(getPointDataView());
451    temp.setOffset(offset);    temp.setOffset(offset);
452    return temp.getData()[i];    return temp.getData()[offset+i];
453  }  }
454    
455    

Legend:
Removed from v.1709  
changed lines
  Added in v.1710

  ViewVC Help
Powered by ViewVC 1.1.26