[cig-commits] r7130 - in short/3D/PyLith/trunk/unittests/libtests/faults: . data

brad at geodynamics.org brad at geodynamics.org
Mon Jun 11 12:06:12 PDT 2007


Author: brad
Date: 2007-06-11 12:06:11 -0700 (Mon, 11 Jun 2007)
New Revision: 7130

Added:
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.hh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.hh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.hh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.hh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.hh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4b.mesh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4c.mesh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4d.mesh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4e.mesh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/tri3d.mesh
Modified:
   short/3D/PyLith/trunk/unittests/libtests/faults/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.hh
   short/3D/PyLith/trunk/unittests/libtests/faults/data/Makefile.am
Log:
Added more unit test for checking cohesive cell ordering for quads (all possible edges for fault). Added unit tests for creating multiple cohesive cells for tri3 and quad4 meshes.

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/Makefile.am	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/Makefile.am	2007-06-11 19:06:11 UTC (rev 7130)
@@ -53,8 +53,13 @@
 	data/CohesiveDataTri3.cc \
 	data/CohesiveDataTri3b.cc \
 	data/CohesiveDataTri3c.cc \
+	data/CohesiveDataTri3d.cc \
 	data/CohesiveDataTri3Lagrange.cc \
 	data/CohesiveDataQuad4.cc \
+	data/CohesiveDataQuad4b.cc \
+	data/CohesiveDataQuad4c.cc \
+	data/CohesiveDataQuad4d.cc \
+	data/CohesiveDataQuad4e.cc \
 	data/CohesiveDataQuad4Lagrange.cc \
 	data/CohesiveDataHex8.cc \
 	data/CohesiveDataHex8Lagrange.cc \
@@ -74,8 +79,13 @@
 	data/CohesiveDataTri3.hh \
 	data/CohesiveDataTri3b.hh \
 	data/CohesiveDataTri3c.hh \
+	data/CohesiveDataTri3d.hh \
 	data/CohesiveDataTri3Lagrange.hh \
 	data/CohesiveDataQuad4.hh \
+	data/CohesiveDataQuad4b.hh \
+	data/CohesiveDataQuad4c.hh \
+	data/CohesiveDataQuad4d.hh \
+	data/CohesiveDataQuad4e.hh \
 	data/CohesiveDataQuad4Lagrange.hh \
 	data/CohesiveDataHex8.hh \
 	data/CohesiveDataHex8Lagrange.hh \

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.cc	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.cc	2007-06-11 19:06:11 UTC (rev 7130)
@@ -26,7 +26,12 @@
 #include "data/CohesiveDataTri3.hh" // USES CohesiveDataTri3
 #include "data/CohesiveDataTri3b.hh" // USES CohesiveDataTri3b
 #include "data/CohesiveDataTri3c.hh" // USES CohesiveDataTri3c
+#include "data/CohesiveDataTri3d.hh" // USES CohesiveDataTri3d
 #include "data/CohesiveDataQuad4.hh" // USES CohesiveDataQuad4
+#include "data/CohesiveDataQuad4b.hh" // USES CohesiveDataQuad4b
+#include "data/CohesiveDataQuad4c.hh" // USES CohesiveDataQuad4c
+#include "data/CohesiveDataQuad4d.hh" // USES CohesiveDataQuad4d
+#include "data/CohesiveDataQuad4e.hh" // USES CohesiveDataQuad4e
 #include "data/CohesiveDataTet4.hh" // USES CohesiveDataTet4
 #include "data/CohesiveDataHex8.hh" // USES CohesiveDataHex8
 
@@ -60,7 +65,7 @@
 } // testAdjustTopologyTri3
 
 // ----------------------------------------------------------------------
-// Test adjustTopology() with 2-D triangular element.
+// Test adjustTopology() with 2-D triangular element (edge b).
 void
 pylith::faults::TestFaultCohesive::testAdjustTopologyTri3b(void)
 { // testAdjustTopologyTri3b
@@ -70,7 +75,7 @@
 } // testAdjustTopologyTri3b
 
 // ----------------------------------------------------------------------
-// Test adjustTopology() with 2-D triangular element.
+// Test adjustTopology() with 2-D triangular element (edge c).
 void
 pylith::faults::TestFaultCohesive::testAdjustTopologyTri3c(void)
 { // testAdjustTopologyTri3c
@@ -80,6 +85,16 @@
 } // testAdjustTopologyTri3c
 
 // ----------------------------------------------------------------------
+// Test adjustTopology() with 2-D triangular element (two cohesive cells).
+void
+pylith::faults::TestFaultCohesive::testAdjustTopologyTri3d(void)
+{ // testAdjustTopologyTri3d
+  CohesiveDataTri3d data;
+  FaultCohesiveDyn fault;
+  _testAdjustTopology(&fault, data);
+} // testAdjustTopologyTri3d
+
+// ----------------------------------------------------------------------
 // Test adjustTopology() with 2-D quadrilateral element.
 void
 pylith::faults::TestFaultCohesive::testAdjustTopologyQuad4(void)
@@ -90,6 +105,46 @@
 } // testAdjustTopologyQuad4
 
 // ----------------------------------------------------------------------
+// Test adjustTopology() with 2-D quadrilateral element.
+void
+pylith::faults::TestFaultCohesive::testAdjustTopologyQuad4b(void)
+{ // testAdjustTopologyQuad4b
+  CohesiveDataQuad4b data;
+  FaultCohesiveDyn fault;
+  _testAdjustTopology(&fault, data);
+} // testAdjustTopologyQuad4b
+
+// ----------------------------------------------------------------------
+// Test adjustTopology() with 2-D quadrilateral element.
+void
+pylith::faults::TestFaultCohesive::testAdjustTopologyQuad4c(void)
+{ // testAdjustTopologyQuad4c
+  CohesiveDataQuad4c data;
+  FaultCohesiveDyn fault;
+  _testAdjustTopology(&fault, data);
+} // testAdjustTopologyQuad4c
+
+// ----------------------------------------------------------------------
+// Test adjustTopology() with 2-D quadrilateral element.
+void
+pylith::faults::TestFaultCohesive::testAdjustTopologyQuad4d(void)
+{ // testAdjustTopologyQuad4d
+  CohesiveDataQuad4d data;
+  FaultCohesiveDyn fault;
+  _testAdjustTopology(&fault, data);
+} // testAdjustTopologyQuad4d
+
+// ----------------------------------------------------------------------
+// Test adjustTopology() with 2-D quadrilateral element.
+void
+pylith::faults::TestFaultCohesive::testAdjustTopologyQuad4e(void)
+{ // testAdjustTopologyQuad4e
+  CohesiveDataQuad4e data;
+  FaultCohesiveDyn fault;
+  _testAdjustTopology(&fault, data);
+} // testAdjustTopologyQuad4e
+
+// ----------------------------------------------------------------------
 // Test adjustTopology() with 3-D tetrahedral element.
 void
 pylith::faults::TestFaultCohesive::testAdjustTopologyTet4(void)

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.hh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesive.hh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -45,7 +45,12 @@
   CPPUNIT_TEST( testAdjustTopologyTri3 );
   CPPUNIT_TEST( testAdjustTopologyTri3b );
   CPPUNIT_TEST( testAdjustTopologyTri3c );
+  CPPUNIT_TEST( testAdjustTopologyTri3d );
   CPPUNIT_TEST( testAdjustTopologyQuad4 );
+  CPPUNIT_TEST( testAdjustTopologyQuad4b );
+  CPPUNIT_TEST( testAdjustTopologyQuad4c );
+  CPPUNIT_TEST( testAdjustTopologyQuad4d );
+  CPPUNIT_TEST( testAdjustTopologyQuad4e );
   CPPUNIT_TEST( testAdjustTopologyTet4 );
   CPPUNIT_TEST( testAdjustTopologyHex8 );
 
@@ -76,9 +81,24 @@
   /// Test adjustTopology() with 2-D triangular element (edge c).
   void testAdjustTopologyTri3c(void);
 
+  /// Test adjustTopology() with 2-D triangular element (2 cohesive cells).
+  void testAdjustTopologyTri3d(void);
+
   /// Test adjustTopology() with 2-D quadrilateral element.
   void testAdjustTopologyQuad4(void);
 
+  /// Test adjustTopology() with 2-D quadrilateral element (edge b).
+  void testAdjustTopologyQuad4b(void);
+
+  /// Test adjustTopology() with 2-D quadrilateral element (edge c).
+  void testAdjustTopologyQuad4c(void);
+
+  /// Test adjustTopology() with 2-D quadrilateral element (edge d).
+  void testAdjustTopologyQuad4d(void);
+
+  /// Test adjustTopology() with 2-D quadrilateral element (2 cohesive cells).
+  void testAdjustTopologyQuad4e(void);
+
   /// Test adjustTopology() with 3-D tetrahedral element.
   void testAdjustTopologyTet4(void);
 

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.cc	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.cc	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,125 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Original mesh
+ *
+ * Cells are 0-1, vertices are 2-7.
+ *
+ *       3 -------- 5 -------- 7
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       2 -------- 4 -------- 6
+ *
+ * After adding cohesive elements
+ *
+ * Cells are 0-1,10 vertices are 2-9.
+ *
+ *       3 -------- 5 -- 9 -------- 7
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       2 -------- 4 -- 8 -------- 6
+ */
+
+#include "CohesiveDataQuad4b.hh"
+
+const int pylith::faults::CohesiveDataQuad4b::_numVertices = 8;
+
+const int pylith::faults::CohesiveDataQuad4b::_spaceDim = 2;
+
+const int pylith::faults::CohesiveDataQuad4b::_numCells = 3;
+
+const int pylith::faults::CohesiveDataQuad4b::_cellDim = 2;
+
+const double pylith::faults::CohesiveDataQuad4b::_vertices[] = {
+  -2.0, -1.0,
+  -2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+   2.0, -1.0,
+   2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+};
+
+const int pylith::faults::CohesiveDataQuad4b::_numCorners[] = {
+  4,
+  4,
+  4
+};
+
+const int pylith::faults::CohesiveDataQuad4b::_cells[] = {
+  4,  5,  3,  2,
+  7,  9,  8,  6,
+  5,  4,  9,  8,
+};
+
+const int pylith::faults::CohesiveDataQuad4b::_materialIds[] = {
+  0,  0,
+  1
+};
+
+const int pylith::faults::CohesiveDataQuad4b::_numGroups = 2;
+
+const int pylith::faults::CohesiveDataQuad4b::_groupSizes[] = 
+  { 4, 4 };
+
+const int pylith::faults::CohesiveDataQuad4b::_groups[] = {
+  4, 5, 8, 9,
+  3, 5, 7, 9
+};
+
+const char* pylith::faults::CohesiveDataQuad4b::_groupNames[] = {
+  "fault", "output"
+};
+
+const char* pylith::faults::CohesiveDataQuad4b::_groupTypes[] = {
+  "vertex", "vertex"
+};
+
+const char* pylith::faults::CohesiveDataQuad4b::_filename = 
+  "data/quad4b.mesh";
+
+pylith::faults::CohesiveDataQuad4b::CohesiveDataQuad4b(void)
+{ // constructor
+  numVertices = _numVertices;
+  spaceDim = _spaceDim;
+  numCells = _numCells;
+  cellDim = _cellDim;
+  vertices = const_cast<double*>(_vertices);
+  numCorners = const_cast<int*>(_numCorners);
+  cells = const_cast<int*>(_cells);
+  materialIds = const_cast<int*>(_materialIds);
+  groups = const_cast<int*>(_groups);
+  groupSizes = const_cast<int*>(_groupSizes);
+  groupNames = const_cast<char**>(_groupNames);
+  groupTypes = const_cast<char**>(_groupTypes);
+  numGroups = _numGroups;
+  filename = const_cast<char*>(_filename);
+} // constructor
+
+pylith::faults::CohesiveDataQuad4b::~CohesiveDataQuad4b(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.hh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4b.hh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_faults_cohesivedataquad4b_hh)
+#define pylith_faults_cohesivedataquad4b_hh
+
+#include "CohesiveData.hh"
+
+namespace pylith {
+  namespace faults {
+     class CohesiveDataQuad4b;
+  } // pylith
+} // faults
+
+class pylith::faults::CohesiveDataQuad4b : public CohesiveData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  CohesiveDataQuad4b(void);
+
+  /// Destructor
+  ~CohesiveDataQuad4b(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const int _numVertices; ///< Number of vertices
+  static const int _spaceDim; ///< Number of dimensions in vertex coordinates
+  static const int _numCells; ///< Number of cells
+  static const int _cellDim; ///< Number of dimensions associated with cell
+
+  static const double _vertices[]; ///< Pointer to coordinates of vertices
+  static const int _numCorners[]; ///< Number of vertices in cell
+  static const int _cells[]; ///< Pointer to indices of vertices in cells
+  static const int _materialIds[]; ///< Pointer to cell material identifiers
+
+  static const int _groups[]; ///< Groups of points
+  static const int _groupSizes[]; ///< Sizes of groups
+  static const char* _groupNames[]; ///< Array of group names
+  static const char* _groupTypes[]; ///< Array of group types
+  static const int _numGroups; ///< Number of groups
+
+  static const char* _filename; ///< Filename of input mesh
+};
+
+#endif // pylith_faults_cohesivedataquad4b_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.cc	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.cc	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,125 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Original mesh
+ *
+ * Cells are 0-1, vertices are 2-7.
+ *
+ *       3 -------- 5 -------- 7
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       2 -------- 4 -------- 6
+ *
+ * After adding cohesive elements
+ *
+ * Cells are 0-1,10 vertices are 2-9.
+ *
+ *       3 -------- 5 -- 9 -------- 7
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       2 -------- 4 -- 8 -------- 6
+ */
+
+#include "CohesiveDataQuad4c.hh"
+
+const int pylith::faults::CohesiveDataQuad4c::_numVertices = 8;
+
+const int pylith::faults::CohesiveDataQuad4c::_spaceDim = 2;
+
+const int pylith::faults::CohesiveDataQuad4c::_numCells = 3;
+
+const int pylith::faults::CohesiveDataQuad4c::_cellDim = 2;
+
+const double pylith::faults::CohesiveDataQuad4c::_vertices[] = {
+  -2.0, -1.0,
+  -2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+   2.0, -1.0,
+   2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+};
+
+const int pylith::faults::CohesiveDataQuad4c::_numCorners[] = {
+  4,
+  4,
+  4
+};
+
+const int pylith::faults::CohesiveDataQuad4c::_cells[] = {
+  5,  3,  2,  4,
+  9,  8,  6,  7,
+  5,  4,  9,  8,
+};
+
+const int pylith::faults::CohesiveDataQuad4c::_materialIds[] = {
+  0,  0,
+  1
+};
+
+const int pylith::faults::CohesiveDataQuad4c::_numGroups = 2;
+
+const int pylith::faults::CohesiveDataQuad4c::_groupSizes[] = 
+  { 4, 4 };
+
+const int pylith::faults::CohesiveDataQuad4c::_groups[] = {
+  4, 5, 8, 9,
+  3, 5, 7, 9
+};
+
+const char* pylith::faults::CohesiveDataQuad4c::_groupNames[] = {
+  "fault", "output"
+};
+
+const char* pylith::faults::CohesiveDataQuad4c::_groupTypes[] = {
+  "vertex", "vertex"
+};
+
+const char* pylith::faults::CohesiveDataQuad4c::_filename = 
+  "data/quad4c.mesh";
+
+pylith::faults::CohesiveDataQuad4c::CohesiveDataQuad4c(void)
+{ // constructor
+  numVertices = _numVertices;
+  spaceDim = _spaceDim;
+  numCells = _numCells;
+  cellDim = _cellDim;
+  vertices = const_cast<double*>(_vertices);
+  numCorners = const_cast<int*>(_numCorners);
+  cells = const_cast<int*>(_cells);
+  materialIds = const_cast<int*>(_materialIds);
+  groups = const_cast<int*>(_groups);
+  groupSizes = const_cast<int*>(_groupSizes);
+  groupNames = const_cast<char**>(_groupNames);
+  groupTypes = const_cast<char**>(_groupTypes);
+  numGroups = _numGroups;
+  filename = const_cast<char*>(_filename);
+} // constructor
+
+pylith::faults::CohesiveDataQuad4c::~CohesiveDataQuad4c(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.hh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4c.hh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_faults_cohesivedataquad4c_hh)
+#define pylith_faults_cohesivedataquad4c_hh
+
+#include "CohesiveData.hh"
+
+namespace pylith {
+  namespace faults {
+     class CohesiveDataQuad4c;
+  } // pylith
+} // faults
+
+class pylith::faults::CohesiveDataQuad4c : public CohesiveData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  CohesiveDataQuad4c(void);
+
+  /// Destructor
+  ~CohesiveDataQuad4c(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const int _numVertices; ///< Number of vertices
+  static const int _spaceDim; ///< Number of dimensions in vertex coordinates
+  static const int _numCells; ///< Number of cells
+  static const int _cellDim; ///< Number of dimensions associated with cell
+
+  static const double _vertices[]; ///< Pointer to coordinates of vertices
+  static const int _numCorners[]; ///< Number of vertices in cell
+  static const int _cells[]; ///< Pointer to indices of vertices in cells
+  static const int _materialIds[]; ///< Pointer to cell material identifiers
+
+  static const int _groups[]; ///< Groups of points
+  static const int _groupSizes[]; ///< Sizes of groups
+  static const char* _groupNames[]; ///< Array of group names
+  static const char* _groupTypes[]; ///< Array of group types
+  static const int _numGroups; ///< Number of groups
+
+  static const char* _filename; ///< Filename of input mesh
+};
+
+#endif // pylith_faults_cohesivedataquad4c_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.cc	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.cc	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,125 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Original mesh
+ *
+ * Cells are 0-1, vertices are 2-7.
+ *
+ *       3 -------- 5 -------- 7
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       2 -------- 4 -------- 6
+ *
+ * After adding cohesive elements
+ *
+ * Cells are 0-1,10 vertices are 2-9.
+ *
+ *       3 -------- 5 -- 9 -------- 7
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       |          |    |          |
+ *       2 -------- 4 -- 8 -------- 6
+ */
+
+#include "CohesiveDataQuad4d.hh"
+
+const int pylith::faults::CohesiveDataQuad4d::_numVertices = 8;
+
+const int pylith::faults::CohesiveDataQuad4d::_spaceDim = 2;
+
+const int pylith::faults::CohesiveDataQuad4d::_numCells = 3;
+
+const int pylith::faults::CohesiveDataQuad4d::_cellDim = 2;
+
+const double pylith::faults::CohesiveDataQuad4d::_vertices[] = {
+  -2.0, -1.0,
+  -2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+   2.0, -1.0,
+   2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+};
+
+const int pylith::faults::CohesiveDataQuad4d::_numCorners[] = {
+  4,
+  4,
+  4
+};
+
+const int pylith::faults::CohesiveDataQuad4d::_cells[] = {
+  3,  2,  4,  5,
+  8,  6,  7,  9,
+  5,  4,  9,  8,
+};
+
+const int pylith::faults::CohesiveDataQuad4d::_materialIds[] = {
+  0,  0,
+  1
+};
+
+const int pylith::faults::CohesiveDataQuad4d::_numGroups = 2;
+
+const int pylith::faults::CohesiveDataQuad4d::_groupSizes[] = 
+  { 4, 4 };
+
+const int pylith::faults::CohesiveDataQuad4d::_groups[] = {
+  4, 5, 8, 9,
+  3, 5, 7, 9
+};
+
+const char* pylith::faults::CohesiveDataQuad4d::_groupNames[] = {
+  "fault", "output"
+};
+
+const char* pylith::faults::CohesiveDataQuad4d::_groupTypes[] = {
+  "vertex", "vertex"
+};
+
+const char* pylith::faults::CohesiveDataQuad4d::_filename = 
+  "data/quad4d.mesh";
+
+pylith::faults::CohesiveDataQuad4d::CohesiveDataQuad4d(void)
+{ // constructor
+  numVertices = _numVertices;
+  spaceDim = _spaceDim;
+  numCells = _numCells;
+  cellDim = _cellDim;
+  vertices = const_cast<double*>(_vertices);
+  numCorners = const_cast<int*>(_numCorners);
+  cells = const_cast<int*>(_cells);
+  materialIds = const_cast<int*>(_materialIds);
+  groups = const_cast<int*>(_groups);
+  groupSizes = const_cast<int*>(_groupSizes);
+  groupNames = const_cast<char**>(_groupNames);
+  groupTypes = const_cast<char**>(_groupTypes);
+  numGroups = _numGroups;
+  filename = const_cast<char*>(_filename);
+} // constructor
+
+pylith::faults::CohesiveDataQuad4d::~CohesiveDataQuad4d(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.hh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4d.hh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_faults_cohesivedataquad4d_hh)
+#define pylith_faults_cohesivedataquad4d_hh
+
+#include "CohesiveData.hh"
+
+namespace pylith {
+  namespace faults {
+     class CohesiveDataQuad4d;
+  } // pylith
+} // faults
+
+class pylith::faults::CohesiveDataQuad4d : public CohesiveData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  CohesiveDataQuad4d(void);
+
+  /// Destructor
+  ~CohesiveDataQuad4d(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const int _numVertices; ///< Number of vertices
+  static const int _spaceDim; ///< Number of dimensions in vertex coordinates
+  static const int _numCells; ///< Number of cells
+  static const int _cellDim; ///< Number of dimensions associated with cell
+
+  static const double _vertices[]; ///< Pointer to coordinates of vertices
+  static const int _numCorners[]; ///< Number of vertices in cell
+  static const int _cells[]; ///< Pointer to indices of vertices in cells
+  static const int _materialIds[]; ///< Pointer to cell material identifiers
+
+  static const int _groups[]; ///< Groups of points
+  static const int _groupSizes[]; ///< Sizes of groups
+  static const char* _groupNames[]; ///< Array of group names
+  static const char* _groupTypes[]; ///< Array of group types
+  static const int _numGroups; ///< Number of groups
+
+  static const char* _filename; ///< Filename of input mesh
+};
+
+#endif // pylith_faults_cohesivedataquad4d_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.cc	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.cc	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,153 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Original mesh
+ *
+ * Cells are 0-3, vertices are 4-12.
+ *
+ *      10 --------11 --------12
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       5 -------- 7 -------- 9
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       |          |          |
+ *       4 -------- 6 -------- 8
+ *
+ * After adding cohesive elements
+ *
+ * Cells are 0-3,16-17 vertices are 4-15.
+ *
+ *      10 --------11--15 --------12
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       5 -------- 7--14 -------- 9
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       |          |   |          |
+ *       4 -------- 6--13 -------- 8
+ */
+
+#include "CohesiveDataQuad4e.hh"
+
+const int pylith::faults::CohesiveDataQuad4e::_numVertices = 12;
+
+const int pylith::faults::CohesiveDataQuad4e::_spaceDim = 2;
+
+const int pylith::faults::CohesiveDataQuad4e::_numCells = 6;
+
+const int pylith::faults::CohesiveDataQuad4e::_cellDim = 2;
+
+const double pylith::faults::CohesiveDataQuad4e::_vertices[] = {
+  -2.0, -1.0,
+  -2.0,  1.0,
+   0.0, -1.0,
+   0.0,  1.0,
+   2.0, -1.0,
+   2.0,  1.0,
+  -2.0,  3.0,
+   0.0,  3.0,
+   2.0,  3.0,
+   0.0, -1.0,
+   0.0,  1.0,
+   0.0,  3.0,
+};
+
+const int pylith::faults::CohesiveDataQuad4e::_numCorners[] = {
+  4,
+  4,
+  4,
+  4,
+  4,
+  4,
+};
+
+const int pylith::faults::CohesiveDataQuad4e::_cells[] = {
+  4,  6,  7,  5,
+ 13,  8,  9, 14,
+  5,  7, 11, 10,
+ 14,  9, 12, 15,
+  7,  6, 14, 13,
+ 11,  7, 15, 14,
+};
+
+const int pylith::faults::CohesiveDataQuad4e::_materialIds[] = {
+  0,  0,  0, 0,
+  1,  1,
+};
+
+const int pylith::faults::CohesiveDataQuad4e::_numGroups = 2;
+
+const int pylith::faults::CohesiveDataQuad4e::_groupSizes[] = 
+  { 6, 4 };
+
+const int pylith::faults::CohesiveDataQuad4e::_groups[] = {
+  6, 7, 11, 13, 14, 15,
+  5, 7, 9, 14
+};
+
+const char* pylith::faults::CohesiveDataQuad4e::_groupNames[] = {
+  "fault", "output"
+};
+
+const char* pylith::faults::CohesiveDataQuad4e::_groupTypes[] = {
+  "vertex", "vertex"
+};
+
+const char* pylith::faults::CohesiveDataQuad4e::_filename = 
+  "data/quad4e.mesh";
+
+pylith::faults::CohesiveDataQuad4e::CohesiveDataQuad4e(void)
+{ // constructor
+  numVertices = _numVertices;
+  spaceDim = _spaceDim;
+  numCells = _numCells;
+  cellDim = _cellDim;
+  vertices = const_cast<double*>(_vertices);
+  numCorners = const_cast<int*>(_numCorners);
+  cells = const_cast<int*>(_cells);
+  materialIds = const_cast<int*>(_materialIds);
+  groups = const_cast<int*>(_groups);
+  groupSizes = const_cast<int*>(_groupSizes);
+  groupNames = const_cast<char**>(_groupNames);
+  groupTypes = const_cast<char**>(_groupTypes);
+  numGroups = _numGroups;
+  filename = const_cast<char*>(_filename);
+} // constructor
+
+pylith::faults::CohesiveDataQuad4e::~CohesiveDataQuad4e(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.hh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataQuad4e.hh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_faults_cohesivedataquad4e_hh)
+#define pylith_faults_cohesivedataquad4e_hh
+
+#include "CohesiveData.hh"
+
+namespace pylith {
+  namespace faults {
+     class CohesiveDataQuad4e;
+  } // pylith
+} // faults
+
+class pylith::faults::CohesiveDataQuad4e : public CohesiveData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  CohesiveDataQuad4e(void);
+
+  /// Destructor
+  ~CohesiveDataQuad4e(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const int _numVertices; ///< Number of vertices
+  static const int _spaceDim; ///< Number of dimensions in vertex coordinates
+  static const int _numCells; ///< Number of cells
+  static const int _cellDim; ///< Number of dimensions associated with cell
+
+  static const double _vertices[]; ///< Pointer to coordinates of vertices
+  static const int _numCorners[]; ///< Number of vertices in cell
+  static const int _cells[]; ///< Pointer to indices of vertices in cells
+  static const int _materialIds[]; ///< Pointer to cell material identifiers
+
+  static const int _groups[]; ///< Groups of points
+  static const int _groupSizes[]; ///< Sizes of groups
+  static const char* _groupNames[]; ///< Array of group names
+  static const char* _groupTypes[]; ///< Array of group types
+  static const int _numGroups; ///< Number of groups
+
+  static const char* _filename; ///< Filename of input mesh
+};
+
+#endif // pylith_faults_cohesivedataquad4e_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.cc	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.cc	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,147 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Original mesh
+ *
+ * Cells are 0-3, vertices are 4-9.
+ *
+ *
+ *         9
+ *        / \
+ *       /   \
+ *      /     \
+ *     /       \
+ *    8---------5
+ *     \       /|\
+ *      \     / | \
+ *       \   /  |  \
+ *        \ /   |   \
+ *         4    |    7
+ *          \   |   /
+ *           \  |  /
+ *            \ | /
+ *             \|/
+ *              6
+ *
+ *
+ * After adding cohesive elements
+ *
+ * Cells are 0-3, 13-14, vertices are 4-12.
+ *
+ *         9
+ *        / \
+ *       /   \
+ *      /     \
+ *     /       \
+ *   12--------- 10
+ *    |          /|
+ *    8---------5 |
+ *     \       /| |\
+ *      \     / | | \
+ *       \   /  | |  \
+ *        \ /   | |   \
+ *         4    | |    7
+ *          \   | |   /
+ *           \  | |  /
+ *            \ | | /
+ *             \| |/
+ *              6-11
+ */
+
+#include "CohesiveDataTri3d.hh"
+
+const int pylith::faults::CohesiveDataTri3d::_numVertices = 9;
+
+const int pylith::faults::CohesiveDataTri3d::_spaceDim = 2;
+
+const int pylith::faults::CohesiveDataTri3d::_numCells = 6;
+
+const int pylith::faults::CohesiveDataTri3d::_cellDim = 2;
+
+const double pylith::faults::CohesiveDataTri3d::_vertices[] = {
+ -1.0,  0.0,
+  0.0,  1.0,
+  0.0, -1.0,
+  1.0,  0.0,
+ -2.0,  1.0,
+ -1.0,  2.0,
+  0.0,  1.0,
+  0.0, -1.0,
+ -2.0,  1.0,
+};
+
+const int pylith::faults::CohesiveDataTri3d::_numCorners[] = {
+  3,
+  3,
+  3,
+  3,
+  4,
+  4,
+};
+
+const int pylith::faults::CohesiveDataTri3d::_cells[] = {
+  4,  6,  5,
+ 10, 11,  7,
+  8,  4,  5,
+ 12, 10,  9,
+  5,  6, 10, 11,
+  8,  5, 12, 10,
+};
+
+const int pylith::faults::CohesiveDataTri3d::_materialIds[] = {
+  0,  0,  0,  0,
+  1,  1
+};
+
+const int pylith::faults::CohesiveDataTri3d::_numGroups = 2;
+
+const int pylith::faults::CohesiveDataTri3d::_groupSizes[] = 
+  { 6, 5 };
+
+const int pylith::faults::CohesiveDataTri3d::_groups[] = {
+  5, 6, 8, 10, 11, 12,
+  5, 6, 7, 10, 11
+};
+
+const char* pylith::faults::CohesiveDataTri3d::_groupNames[] = {
+  "fault", "output"
+};
+
+const char* pylith::faults::CohesiveDataTri3d::_groupTypes[] = {
+  "vertex", "vertex"
+};
+
+const char* pylith::faults::CohesiveDataTri3d::_filename = "data/tri3d.mesh";
+
+pylith::faults::CohesiveDataTri3d::CohesiveDataTri3d(void)
+{ // constructor
+  numVertices = _numVertices;
+  spaceDim = _spaceDim;
+  numCells = _numCells;
+  cellDim = _cellDim;
+  vertices = const_cast<double*>(_vertices);
+  numCorners = const_cast<int*>(_numCorners);
+  cells = const_cast<int*>(_cells);
+  materialIds = const_cast<int*>(_materialIds);
+  groups = const_cast<int*>(_groups);
+  groupSizes = const_cast<int*>(_groupSizes);
+  groupNames = const_cast<char**>(_groupNames);
+  groupTypes = const_cast<char**>(_groupTypes);
+  numGroups = _numGroups;
+  filename = const_cast<char*>(_filename);
+} // constructor
+
+pylith::faults::CohesiveDataTri3d::~CohesiveDataTri3d(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.hh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/CohesiveDataTri3d.hh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_faults_cohesivedatatri3d_hh)
+#define pylith_faults_cohesivedatatri3d_hh
+
+#include "CohesiveData.hh"
+
+namespace pylith {
+  namespace faults {
+     class CohesiveDataTri3d;
+  } // pylith
+} // faults
+
+class pylith::faults::CohesiveDataTri3d : public CohesiveData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  CohesiveDataTri3d(void);
+
+  /// Destructor
+  ~CohesiveDataTri3d(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const int _numVertices; ///< Number of vertices
+  static const int _spaceDim; ///< Number of dimensions in vertex coordinates
+  static const int _numCells; ///< Number of cells
+  static const int _cellDim; ///< Number of dimensions associated with cell
+
+  static const double _vertices[]; ///< Pointer to coordinates of vertices
+  static const int _numCorners[]; ///< Number of vertices in cell
+  static const int _cells[]; ///< Pointer to indices of vertices in cells
+  static const int _materialIds[]; ///< Pointer to cell material identifiers
+
+  static const int _groups[]; ///< Groups of points
+  static const int _groupSizes[]; ///< Sizes of groups
+  static const char* _groupNames[]; ///< Array of group names
+  static const char* _groupTypes[]; ///< Array of group types
+  static const int _numGroups; ///< Number of groups
+
+  static const char* _filename; ///< Filename of input mesh
+};
+
+#endif // pylith_faults_cohesivedatatri3d_hh
+
+// End of file

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/data/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/Makefile.am	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/Makefile.am	2007-06-11 19:06:11 UTC (rev 7130)
@@ -18,10 +18,15 @@
 	tri3.mesh \
 	tri3b.mesh \
 	tri3c.mesh \
+	tri3d.mesh \
 	tri3_finalslip.spatialdb \
 	tri3_sliptime.spatialdb \
 	tri3_peakrate.spatialdb \
 	quad4.mesh \
+	quad4b.mesh \
+	quad4c.mesh \
+	quad4d.mesh \
+	quad4e.mesh \
 	quad4_finalslip.spatialdb \
 	quad4_sliptime.spatialdb \
 	quad4_peakrate.spatialdb \

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4b.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4b.mesh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4b.mesh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,47 @@
+mesh = {
+  dimension = 2
+  use-index-zero = true
+  vertices = {
+    dimension = 2
+    count = 6
+    coordinates = {
+             0     -2.0 -1.0
+             1     -2.0  1.0
+             2      0.0 -1.0
+             3      0.0  1.0
+             4      2.0 -1.0
+             5      2.0  1.0
+    }
+  }
+  cells = {
+    count = 2
+    num-corners = 4
+    simplices = {
+             0       2  3  1  0
+             1       5  3  2  4
+    }
+    material-ids = {
+             0   0
+             1   0
+    }
+  }
+  group = {
+    name = fault
+    type = vertices
+    count = 2
+    indices = {
+      2
+      3
+    }
+  }
+  group = {
+    name = output
+    type = vertices
+    count = 3
+    indices = {
+      1
+      3
+      5
+    }
+  }
+}

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4c.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4c.mesh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4c.mesh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,47 @@
+mesh = {
+  dimension = 2
+  use-index-zero = true
+  vertices = {
+    dimension = 2
+    count = 6
+    coordinates = {
+             0     -2.0 -1.0
+             1     -2.0  1.0
+             2      0.0 -1.0
+             3      0.0  1.0
+             4      2.0 -1.0
+             5      2.0  1.0
+    }
+  }
+  cells = {
+    count = 2
+    num-corners = 4
+    simplices = {
+             0       3  1  0  2
+             1       3  2  4  5
+    }
+    material-ids = {
+             0   0
+             1   0
+    }
+  }
+  group = {
+    name = fault
+    type = vertices
+    count = 2
+    indices = {
+      2
+      3
+    }
+  }
+  group = {
+    name = output
+    type = vertices
+    count = 3
+    indices = {
+      1
+      3
+      5
+    }
+  }
+}

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4d.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4d.mesh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4d.mesh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,47 @@
+mesh = {
+  dimension = 2
+  use-index-zero = true
+  vertices = {
+    dimension = 2
+    count = 6
+    coordinates = {
+             0     -2.0 -1.0
+             1     -2.0  1.0
+             2      0.0 -1.0
+             3      0.0  1.0
+             4      2.0 -1.0
+             5      2.0  1.0
+    }
+  }
+  cells = {
+    count = 2
+    num-corners = 4
+    simplices = {
+             0       1  0  2  3
+             1       2  4  5  3
+    }
+    material-ids = {
+             0   0
+             1   0
+    }
+  }
+  group = {
+    name = fault
+    type = vertices
+    count = 2
+    indices = {
+      2
+      3
+    }
+  }
+  group = {
+    name = output
+    type = vertices
+    count = 3
+    indices = {
+      1
+      3
+      5
+    }
+  }
+}

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4e.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4e.mesh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/quad4e.mesh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,55 @@
+mesh = {
+  dimension = 2
+  use-index-zero = true
+  vertices = {
+    dimension = 2
+    count = 9
+    coordinates = {
+             0     -2.0 -1.0
+             1     -2.0  1.0
+             2      0.0 -1.0
+             3      0.0  1.0
+             4      2.0 -1.0
+             5      2.0  1.0
+             6     -2.0  3.0
+             7      0.0  3.0
+             8      2.0  3.0
+    }
+  }
+  cells = {
+    count = 4
+    num-corners = 4
+    simplices = {
+             0       0  2  3  1
+             1       2  4  5  3
+             2       1  3  7  6
+             3       3  5  8  7
+    }
+    material-ids = {
+             0   0
+             1   0
+             2   0
+             3   0
+    }
+  }
+  group = {
+    name = fault
+    type = vertices
+    count = 3
+    indices = {
+      2
+      3
+      7
+    }
+  }
+  group = {
+    name = output
+    type = vertices
+    count = 3
+    indices = {
+      1
+      3
+      5
+    }
+  }
+}

Added: short/3D/PyLith/trunk/unittests/libtests/faults/data/tri3d.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/data/tri3d.mesh	2007-06-11 17:31:07 UTC (rev 7129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/data/tri3d.mesh	2007-06-11 19:06:11 UTC (rev 7130)
@@ -0,0 +1,52 @@
+mesh = {
+  dimension = 2
+  use-index-zero = true
+  vertices = {
+    dimension = 2
+    count = 6
+    coordinates = {
+             0     -1.0  0.0
+             1      0.0  1.0
+             2      0.0 -1.0
+             3      1.0  0.0
+             4     -2.0  1.0
+             5     -1.0  2.0
+    }
+  }
+  cells = {
+    count = 4
+    num-corners = 3
+    simplices = {
+             0       0  2  1
+             1       1  2  3
+             2       4  0  1
+             3       4  1  5
+    }
+    material-ids = {
+             0   0
+             1   0
+             2   0
+             3   0
+    }
+  }
+  group = {
+    name = fault
+    type = vertices
+    count = 3
+    indices = {
+      1
+      2
+      4
+    }
+  }
+  group = {
+    name = output
+    type = vertices
+    count = 3
+    indices = {
+      1
+      2
+      3
+    }
+  }
+}



More information about the cig-commits mailing list