[cig-commits] r22036 - short/3D/PyLith/trunk/unittests/libtests/meshio
brad at geodynamics.org
brad at geodynamics.org
Fri May 10 17:35:39 PDT 2013
Author: brad
Date: 2013-05-10 17:35:38 -0700 (Fri, 10 May 2013)
New Revision: 22036
Modified:
short/3D/PyLith/trunk/unittests/libtests/meshio/TestCellFilterAvg.cc
Log:
Attempt to set correct values for new test case (test fails for other reasons).
Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestCellFilterAvg.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestCellFilterAvg.cc 2013-05-11 00:26:13 UTC (rev 22035)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestCellFilterAvg.cc 2013-05-11 00:35:38 UTC (rev 22036)
@@ -170,26 +170,25 @@
};
const int cellDim = 1;
const int numBasis = 2;
- const int numQuadPts = 1;
+ const int numQuadPts = 2;
const int spaceDim = 2;
- const PylithScalar basis[] = {
+ const PylithScalar basis[numQuadPts*numBasis] = {
1.0, 1.0,
1.0, 1.0,
};
- const PylithScalar basisDerivRef[] = {
+ const PylithScalar basisDerivRef[numQuadPts*numBasis*cellDim] = {
1.0, 1.0, 1.0, 1.0,
- 1.0, 1.0, 1.0, 1.0,
};
- const PylithScalar quadPtsRef[] = {
+ const PylithScalar quadPtsRef[numQuadPts*cellDim] = {
0.0, 0.0,
};
- const PylithScalar quadWts[] = { 1.0 };
+ const PylithScalar quadWts[numQuadPts] = { 1.5, 0.5 };
const PylithScalar minJacobian = 1.0;
const topology::FieldBase::VectorFieldEnum fieldTypeE =
topology::FieldBase::SCALAR;
const int fiberDimE = 1;
- const PylithScalar fieldValuesE[] = {
+ const PylithScalar fieldValuesE[numBasis] = {
(1.5*1.1 + 0.5*1.2)/2.0,
(1.5*2.1 + 0.5*2.2)/2.0,
};
More information about the CIG-COMMITS
mailing list