/[escript]/trunk/esys2/escript/test/DataConstant/DataConstantTestCase.cpp
ViewVC logotype

Diff of /trunk/esys2/escript/test/DataConstant/DataConstantTestCase.cpp

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

revision 151 by jgs, Thu Sep 1 03:31:39 2005 UTC revision 152 by phornby, Fri Oct 21 08:32:21 2005 UTC
# Line 62  void DataConstantTestCase::testAll() { Line 62  void DataConstantTestCase::testAll() {
62    shape.push_back(3);    shape.push_back(3);
63    shape.push_back(21);    shape.push_back(21);
64    testData.reshapeDataPoint(shape);    testData.reshapeDataPoint(shape);
65    assert(testData.getPointDataView().getRank()==shape.size());    assert((unsigned int)testData.getPointDataView().getRank()==shape.size());
66    
67    cout << "\tTest getPointDataView." << endl;    cout << "\tTest getPointDataView." << endl;
68    for (int k=0;k<shape[2];k++) {    for (int k=0;k<shape[2];k++) {
# Line 93  void DataConstantTestCase::testAll() { Line 93  void DataConstantTestCase::testAll() {
93    
94    cout << "\tTesting alternative constructor." << endl;    cout << "\tTesting alternative constructor." << endl;
95    DataArrayView::ValueType data1(DataArrayView::noValues(shape),1.0);    DataArrayView::ValueType data1(DataArrayView::noValues(shape),1.0);
96    DataConstant testData1(FunctionSpace(), shape, data1);    // do not call the FunctionSpace constructor directly
97      // in the argument of DataConstant
98      // GCC chokes on it.
99      FunctionSpace tmp_fns;
100      DataConstant testData1(tmp_fns, shape, data1);
101    
102    for (int k=0;k<shape[2];k++) {    for (int k=0;k<shape[2];k++) {
103      for (int j=0;j<shape[1];j++) {      for (int j=0;j<shape[1];j++) {

Legend:
Removed from v.151  
changed lines
  Added in v.152

  ViewVC Help
Powered by ViewVC 1.1.26