/[escript]/branches/arrayview_from_1695_trunk/escript/test/DataTestCase.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/test/DataTestCase.cpp

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

revision 1697 by jfenwick, Mon Aug 11 06:29:54 2008 UTC revision 1698 by jfenwick, Tue Aug 12 01:13:16 2008 UTC
# Line 496  void DataTestCase::testDataConstant() { Line 496  void DataTestCase::testDataConstant() {
496    viewShape.push_back(3);    viewShape.push_back(3);
497    viewShape.push_back(4);    viewShape.push_back(4);
498    DataTypes::ValueType viewData(2*3*4);    DataTypes::ValueType viewData(2*3*4);
499    for (int i=0;i<DataArrayView::noValues(viewShape);++i) {    for (int i=0;i<DataTypes::noValues(viewShape);++i) {
500      viewData[i]=i;      viewData[i]=i;
501    }    }
502    DataArrayView myView(viewData,viewShape);    DataArrayView myView(viewData,viewShape);
# Line 725  void DataTestCase::testOperations() { Line 725  void DataTestCase::testOperations() {
725    shape.push_back(3);    shape.push_back(3);
726    
727    // allocate the data for the DataArrayView    // allocate the data for the DataArrayView
728    DataTypes::ValueType data(DataArrayView::noValues(shape),0);    DataTypes::ValueType data(DataTypes::noValues(shape),0);
729    
730    // construct DataArrayView    // construct DataArrayView
731    DataArrayView dataView(data,shape);    DataArrayView dataView(data,shape);

Legend:
Removed from v.1697  
changed lines
  Added in v.1698

  ViewVC Help
Powered by ViewVC 1.1.26