[cig-commits] r16961 - in short/3D/PyLith/trunk: libsrc/topology unittests/libtests/topology

brad at geodynamics.org brad at geodynamics.org
Wed Jun 9 15:17:44 PDT 2010


Author: brad
Date: 2010-06-09 15:17:44 -0700 (Wed, 09 Jun 2010)
New Revision: 16961

Modified:
   short/3D/PyLith/trunk/libsrc/topology/Field.cc
   short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc
Log:
Updated unit test.

Modified: short/3D/PyLith/trunk/libsrc/topology/Field.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/Field.cc	2010-06-09 22:17:27 UTC (rev 16960)
+++ short/3D/PyLith/trunk/libsrc/topology/Field.cc	2010-06-09 22:17:44 UTC (rev 16961)
@@ -751,7 +751,6 @@
   const int spaceDim = _mesh.dimension();
   for (int iDim=0; iDim < spaceDim; ++iDim)
     _section->addSpace(); // displacements
-  //_section->addSpace(); // Lagrange multipliers
 
   const chart_type& chart = _section->getChart();
 

Modified: short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc	2010-06-09 22:17:27 UTC (rev 16960)
+++ short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc	2010-06-09 22:17:44 UTC (rev 16961)
@@ -1024,7 +1024,7 @@
 pylith::topology::TestFieldMesh::testSplitDefault(void)
 { // testSplitDefault
   const int spaceDim = _TestFieldMesh::cellDim;
-  const int numFibrations = spaceDim + 1;
+  const int numFibrations = spaceDim;
   const int nconstraints[4] = { 1, 2, 0, 1 };
   const int constraints[4] = {
     1,     // 0
@@ -1111,7 +1111,7 @@
 pylith::topology::TestFieldMesh::testCloneSectionSplit(void)
 { // testCloneSectionSplit
   const int spaceDim = _TestFieldMesh::cellDim;
-  const int numFibrations = spaceDim + 1;
+  const int numFibrations = spaceDim;
   const int nconstraints[4] = { 1, 2, 0, 1 };
   const int constraints[4] = {
     1,     // 0



More information about the CIG-COMMITS mailing list