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++) { |
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++) { |