[cig-commits] r15128 - short/3D/PyLith/trunk/unittests/libtests/topology

brad at geodynamics.org brad at geodynamics.org
Fri Jun 5 21:07:32 PDT 2009


Author: brad
Date: 2009-06-05 21:07:32 -0700 (Fri, 05 Jun 2009)
New Revision: 15128

Modified:
   short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc
Log:
Fixed bug in unit test.

Modified: short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc	2009-06-06 00:58:33 UTC (rev 15127)
+++ short/3D/PyLith/trunk/unittests/libtests/topology/TestFieldMesh.cc	2009-06-06 04:07:32 UTC (rev 15128)
@@ -21,7 +21,7 @@
 
 #include "spatialdata/geocoords/CSCart.hh" // USES CSCart
 
-//#define FIELD_SPLIT
+#define FIELD_SPLIT
 
 // ----------------------------------------------------------------------
 CPPUNIT_TEST_SUITE_REGISTRATION( pylith::topology::TestFieldMesh );
@@ -1059,10 +1059,10 @@
     int iV=0;
     for (Mesh::SieveMesh::label_sequence::iterator v_iter=vertices->begin();
 	 v_iter != vertices->end();
-	 ++v_iter) {
-      section->addConstraintDimension(*v_iter, nconstraints[iV++]);
+	 ++v_iter, ++iV) {
+      section->addConstraintDimension(*v_iter, nconstraints[iV]);
 #if defined(FIELD_SPLIT)
-      section->addConstraintDimension(*v_iter, nconstraints[iV++], fibration);
+      section->addConstraintDimension(*v_iter, nconstraints[iV], fibration);
 #endif
     } // for
     fieldSrc.allocate();



More information about the CIG-COMMITS mailing list