[cig-commits] r8330 - in short/3D/PyLith/trunk: libsrc/faults
unittests/libtests/faults/data
brad at geodynamics.org
brad at geodynamics.org
Mon Nov 26 07:10:40 PST 2007
Author: brad
Date: 2007-11-26 07:10:39 -0800 (Mon, 26 Nov 2007)
New Revision: 8330
Modified:
short/3D/PyLith/trunk/libsrc/faults/CohesiveTopology.cc
short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataLine2Lagrange.cc
short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4Lagrange.cc
Log:
Updated unit tests for new cohesive cell creation algorithm (reorder vertices in cells).
Modified: short/3D/PyLith/trunk/libsrc/faults/CohesiveTopology.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/faults/CohesiveTopology.cc 2007-11-26 13:41:16 UTC (rev 8329)
+++ short/3D/PyLith/trunk/libsrc/faults/CohesiveTopology.cc 2007-11-26 15:10:39 UTC (rev 8330)
@@ -70,8 +70,7 @@
const PointSet::const_iterator fvEnd = faultVertices.end();
int f = sieve->base()->size() + sieve->cap()->size();
- //int debug = mesh->debug();
- int debug = 1;
+ int debug = mesh->debug();
ALE::Obj<PointSet> face = new PointSet();
PointSet faultCells;
@@ -173,7 +172,7 @@
} // for
#endif
faultSieve->addArrow(f, *c_iter);
- faultSieve->view("");
+ //faultSieve->view("");
f++;
} // if/else
faultCells.insert(*c_iter);
Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataLine2Lagrange.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataLine2Lagrange.cc 2007-11-26 13:41:16 UTC (rev 8329)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataLine2Lagrange.cc 2007-11-26 15:10:39 UTC (rev 8330)
@@ -17,7 +17,7 @@
* 2 -------- 3 -------- 4
*
* After adding cohesive elements
- * 2 -------- 3 -6- 5 -------- 4
+ * 2 -------- 5 -6- 3 -------- 4
*/
#include "CohesiveDataLine2Lagrange.hh"
@@ -45,8 +45,8 @@
};
const int pylith::faults::CohesiveDataLine2Lagrange::_cells[] = {
- 2, 3,
- 5, 4,
+ 2, 5,
+ 3, 4,
3, 5, 6
};
Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4Lagrange.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4Lagrange.cc 2007-11-26 13:41:16 UTC (rev 8329)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTet4Lagrange.cc 2007-11-26 15:10:39 UTC (rev 8330)
@@ -60,7 +60,7 @@
const int pylith::faults::CohesiveDataTet4Lagrange::_cells[] = {
3, 4, 5, 2,
7, 11, 9, 6,
- 5, 4, 3, 11, 9, 7, 12, 10, 8
+ 4, 3, 5, 9, 7, 11, 10, 8, 12
};
const int pylith::faults::CohesiveDataTet4Lagrange::_materialIds[] = {
More information about the cig-commits
mailing list