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

brad at geodynamics.org brad at geodynamics.org
Sat Mar 1 13:59:38 PST 2008


Author: brad
Date: 2008-03-01 13:59:37 -0800 (Sat, 01 Mar 2008)
New Revision: 11296

Added:
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_vertex_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_vertex_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_vertex_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_vertex_t10.vtk
Modified:
   short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKMesh.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh
Log:
Added C++ unit tests for output of fault data.

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am	2008-02-29 21:13:04 UTC (rev 11295)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am	2008-03-01 21:59:37 UTC (rev 11296)
@@ -33,6 +33,11 @@
 	TestDataWriterVTKSubMeshQuad4.cc \
 	TestDataWriterVTKSubMeshTet4.cc \
 	TestDataWriterVTKSubMeshHex8.cc \
+	TestDataWriterVTKFaultMesh.cc \
+	TestDataWriterVTKFaultMeshTri3.cc \
+	TestDataWriterVTKFaultMeshQuad4.cc \
+	TestDataWriterVTKFaultMeshTet4.cc \
+	TestDataWriterVTKFaultMeshHex8.cc \
 	TestMeshIO.cc \
 	TestMeshIOAscii.cc \
 	TestMeshIOLagrit.cc \
@@ -51,6 +56,11 @@
 	TestDataWriterVTKSubMeshQuad4.hh \
 	TestDataWriterVTKSubMeshTet4.hh \
 	TestDataWriterVTKSubMeshHex8.hh \
+	TestDataWriterVTKFaultMesh.hh \
+	TestDataWriterVTKFaultMeshTri3.hh \
+	TestDataWriterVTKFaultMeshQuad4.hh \
+	TestDataWriterVTKFaultMeshTet4.hh \
+	TestDataWriterVTKFaultMeshHex8.hh \
 	TestMeshIO.hh \
 	TestMeshIOAscii.hh \
 	TestMeshIOLagrit.hh
@@ -69,6 +79,10 @@
 	data/DataWriterVTKDataSubMeshQuad4.cc \
 	data/DataWriterVTKDataSubMeshTet4.cc \
 	data/DataWriterVTKDataSubMeshHex8.cc \
+	data/DataWriterVTKDataFaultMeshTri3.cc \
+	data/DataWriterVTKDataFaultMeshQuad4.cc \
+	data/DataWriterVTKDataFaultMeshTet4.cc \
+	data/DataWriterVTKDataFaultMeshHex8.cc \
 	data/MeshData.cc \
 	data/MeshData1D.cc \
 	data/MeshData1Din3D.cc \
@@ -96,6 +110,10 @@
 	data/DataWriterVTKDataSubMeshQuad4.hh \
 	data/DataWriterVTKDataSubMeshTet4.hh \
 	data/DataWriterVTKDataSubMeshHex8.hh \
+	data/DataWriterVTKDataFaultMeshTri3.hh \
+	data/DataWriterVTKDataFaultMeshQuad4.hh \
+	data/DataWriterVTKDataFaultMeshTet4.hh \
+	data/DataWriterVTKDataFaultMeshHex8.hh \
 	data/MeshData.hh \
 	data/MeshData1D.hh \
 	data/MeshData1Din2D.hh \
@@ -166,7 +184,19 @@
 	tet4_sub_cell_t10.vtk \
 	hex8_sub_t10.vtk \
 	hex8_sub_vertex_t10.vtk \
-	hex8_sub_cell_t10.vtk
+	hex8_sub_cell_t10.vtk \
+	tri3_fault_t10.vtk \
+	tri3_fault_vertex_t10.vtk \
+	tri3_fault_cell_t10.vtk \
+	quad4_fault_t10.vtk \
+	quad4_fault_vertex_t10.vtk \
+	quad4_fault_cell_t10.vtk \
+	tet4_fault_t10.vtk \
+	tet4_fault_vertex_t10.vtk \
+	tet4_fault_cell_t10.vtk \
+	hex8_fault_t10.vtk \
+	hex8_fault_vertex_t10.vtk \
+	hex8_fault_cell_t10.vtk
 
 CLEANFILES = $(noinst_tmp)
 

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc	2008-02-29 21:13:04 UTC (rev 11295)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTK.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -333,7 +333,7 @@
     fileInE.getline(lineE, maxLen);
     fileIn.getline(line, maxLen);
     if (0 != strcmp(line, lineE)) {
-      std::cerr << "Line " << i << " of file '" << filename << " is incorrect."
+      std::cerr << "Line " << i << " of file '" << filename << "' is incorrect."
 		<< std::endl;
       CPPUNIT_ASSERT(false);
     } // if

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,69 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKFaultMesh.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKData.hh" // USES DataWriterVTKData
+#include "data/DataWriterVTKDataMesh.hh" // USES DataWriterVTKDataMesh
+
+#include "pylith/meshio/MeshIOAscii.hh" // USES MeshIOAscii
+#include "pylith/faults/FaultCohesiveKin.hh" // USES FaultCohesiveKin
+#include "pylith/faults/CohesiveTopology.hh" // USES CohesiveTopology
+
+#include <map> // USES std::map
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKFaultMesh::setUp(void)
+{ // setUp
+  TestDataWriterVTK::setUp();
+  _dataMesh = 0;
+} // setUp
+
+// ----------------------------------------------------------------------
+// Tear down testing data.
+void
+pylith::meshio::TestDataWriterVTKFaultMesh::tearDown(void)
+{ // tearDown
+  TestDataWriterVTK::tearDown();
+  delete _dataMesh; _dataMesh = 0;
+} // tearDown
+
+// ----------------------------------------------------------------------
+// Initialize mesh.
+void
+pylith::meshio::TestDataWriterVTKFaultMesh::_initialize(void)
+{ // _initialize
+  CPPUNIT_ASSERT(0 != _dataMesh);
+
+  MeshIOAscii iohandler;
+  iohandler.filename(_dataMesh->meshFilename);
+  iohandler.read(&_meshDomain);
+  CPPUNIT_ASSERT(!_meshDomain.isNull());
+  _meshDomain->getFactory()->clear();
+
+  faults::FaultCohesiveKin fault;
+  fault.label(_dataMesh->faultLabel);
+  fault.id(_dataMesh->faultId);
+  fault.adjustTopology(_meshDomain);
+  const bool constraintCell = true;
+  std::map<Mesh::point_type, Mesh::point_type> cohesiveToFault;
+  faults::CohesiveTopology::createParallel(&_mesh, &cohesiveToFault,
+					   _meshDomain, _dataMesh->faultId,
+					   constraintCell);
+} // _initialize
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMesh.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,65 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKFaultMesh.hh
+ *
+ * @brief C++ TestDataWriterVTKFaultMesh object
+ *
+ * C++ unit testing for DataWriterVTKFaultMesh.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtkfaultmesh_hh)
+#define pylith_meshio_testdatawritervtkfaultmesh_hh
+
+#include "TestDataWriterVTK.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKFaultMesh;
+
+    class DataWriterVTKDataMesh;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKFaultMesh : public TestDataWriterVTK
+{ // class TestDataWriterVTKFaultMesh
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+  /// Tear down testing data.
+  void tearDown(void);
+
+  // PROTECTED MEMBERS //////////////////////////////////////////////////
+protected :
+
+  /// Initialize mesh.
+  void _initialize(void);
+
+  // PROTECTED MEMBERS //////////////////////////////////////////////////
+protected :
+
+  DataWriterVTKDataMesh* _dataMesh; ///< Data for testing.
+  ALE::Obj<Mesh> _meshDomain; ///< Mesh for domain.
+
+}; // class TestDataWriterVTKFaultMesh
+
+#endif // pylith_meshio_testdatawritervtkfaultmesh_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKFaultMeshHex8.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataFaultMeshHex8.hh" // USES DataWriterVTKDataFaultMeshHex8
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKFaultMeshHex8 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKFaultMeshHex8::setUp(void)
+{ // setUp
+  TestDataWriterVTKFaultMesh::setUp();
+  _data = new DataWriterVTKDataFaultMeshHex8;
+  _dataMesh = new DataWriterVTKDataFaultMeshHex8;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKFaultMeshHex8.hh
+ *
+ * @brief C++ TestDataWriterVTKFaultMeshHex8 object
+ *
+ * C++ unit testing for DataWriterVTKFaultMeshHex8.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtkfaultmeshhex8_hh)
+#define pylith_meshio_testdatawritervtkfaultmeshhex8_hh
+
+#include "TestDataWriterVTKFaultMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKFaultMeshHex8;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKFaultMeshHex8 : public TestDataWriterVTKFaultMesh
+{ // class TestDataWriterVTKFaultMeshHex8
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKFaultMeshHex8 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKFaultMeshHex8
+
+#endif // pylith_meshio_testdatawritervtkfaultmeshhex8_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKFaultMeshQuad4.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataFaultMeshQuad4.hh" // USES DataWriterVTKDataFaultMeshQuad4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKFaultMeshQuad4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKFaultMeshQuad4::setUp(void)
+{ // setUp
+  TestDataWriterVTKFaultMesh::setUp();
+  _data = new DataWriterVTKDataFaultMeshQuad4;
+  _dataMesh = new DataWriterVTKDataFaultMeshQuad4;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKFaultMeshQuad4.hh
+ *
+ * @brief C++ TestDataWriterVTKFaultMeshQuad4 object
+ *
+ * C++ unit testing for DataWriterVTKFaultMeshQuad4.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtkfaultmeshquad4_hh)
+#define pylith_meshio_testdatawritervtkfaultmeshquad4_hh
+
+#include "TestDataWriterVTKFaultMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKFaultMeshQuad4;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKFaultMeshQuad4 : public TestDataWriterVTKFaultMesh
+{ // class TestDataWriterVTKFaultMeshQuad4
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKFaultMeshQuad4 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKFaultMeshQuad4
+
+#endif // pylith_meshio_testdatawritervtkfaultmeshquad4_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKFaultMeshTet4.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataFaultMeshTet4.hh" // USES DataWriterVTKDataFaultMeshTet4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKFaultMeshTet4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKFaultMeshTet4::setUp(void)
+{ // setUp
+  TestDataWriterVTKFaultMesh::setUp();
+  _data = new DataWriterVTKDataFaultMeshTet4;
+  _dataMesh = new DataWriterVTKDataFaultMeshTet4;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKFaultMeshTet4.hh
+ *
+ * @brief C++ TestDataWriterVTKFaultMeshTet4 object
+ *
+ * C++ unit testing for DataWriterVTKFaultMeshTet4.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtkfaultmeshtet4_hh)
+#define pylith_meshio_testdatawritervtkfaultmeshtet4_hh
+
+#include "TestDataWriterVTKFaultMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKFaultMeshTet4;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKFaultMeshTet4 : public TestDataWriterVTKFaultMesh
+{ // class TestDataWriterVTKFaultMeshTet4
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKFaultMeshTet4 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKFaultMeshTet4
+
+#endif // pylith_meshio_testdatawritervtkfaultmeshtet4_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKFaultMeshTri3.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataFaultMeshTri3.hh" // USES DataWriterVTKDataFaultMeshTri3
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKFaultMeshTri3 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKFaultMeshTri3::setUp(void)
+{ // setUp
+  TestDataWriterVTKFaultMesh::setUp();
+  _data = new DataWriterVTKDataFaultMeshTri3;
+  _dataMesh = new DataWriterVTKDataFaultMeshTri3;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKFaultMeshTri3.hh
+ *
+ * @brief C++ TestDataWriterVTKFaultMeshTri3 object
+ *
+ * C++ unit testing for DataWriterVTKFaultMeshTri3.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtkfaultmeshtri3_hh)
+#define pylith_meshio_testdatawritervtkfaultmeshtri3_hh
+
+#include "TestDataWriterVTKFaultMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKFaultMeshTri3;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKFaultMeshTri3 : public TestDataWriterVTKFaultMesh
+{ // class TestDataWriterVTKFaultMeshTri3
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKFaultMeshTri3 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKFaultMeshTri3
+
+#endif // pylith_meshio_testdatawritervtkfaultmeshtri3_hh
+
+
+// End of file 

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKMesh.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKMesh.cc	2008-02-29 21:13:04 UTC (rev 11295)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKMesh.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -18,7 +18,7 @@
 #include "data/DataWriterVTKDataMesh.hh" // USES DataWriterVTKDataMesh
 
 #include "pylith/meshio/MeshIOAscii.hh" // USES MeshIOAscii
-#include "pylith/faults/FaultCohesiveKin.hh" // USES MeshIOAscii
+#include "pylith/faults/FaultCohesiveKin.hh" // USES FaultCohesiveKin
 
 // ----------------------------------------------------------------------
 // Setup testing data.
@@ -51,7 +51,6 @@
   CPPUNIT_ASSERT(!_mesh.isNull());
   _mesh->getFactory()->clear();
 
-
   if (0 != _dataMesh->faultLabel) {
     faults::FaultCohesiveKin fault;
     fault.label(_dataMesh->faultLabel);

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,116 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataFaultMeshHex8.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshHex8::_meshFilename = 
+  "data/hex8.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshHex8::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataFaultMeshHex8::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshHex8::_timestepFilename = 
+  "hex8_fault.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshHex8::_vertexFilename = 
+  "hex8_fault_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshHex8::_cellFilename = 
+  "hex8_fault_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshHex8::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshHex8::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshHex8::_numVertices = 4;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshHex8::_vertexFields[] = {
+  { "displacements", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_vertexField0[] = {
+  1.1, 2.2, 3.3,
+  4.4, 5.5, 6.6,
+  7.7, 8.8, 9.9,
+  10.1, 11.2, 12.3,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+  5.6, 6.7,
+  7.8, 8.9,
+};
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshHex8::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshHex8::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshHex8::_cellFields[] = {
+  { "traction", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 6 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_cellField0[] = {
+  1.1, 2.2, 3.3,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshHex8::_cellField2[] = {
+  1.2, 2.3, 3.4, 4.5, 5.6, 6.7,
+};
+
+pylith::meshio::DataWriterVTKDataFaultMeshHex8::DataWriterVTKDataFaultMeshHex8(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  faultLabel = const_cast<char*>(_faultLabel);
+  faultId = _faultId;
+
+  timestepFilename = const_cast<char*>(_timestepFilename);
+  vertexFilename = const_cast<char*>(_vertexFilename);
+  cellFilename = const_cast<char*>(_cellFilename);
+
+  time = _time;
+  timeFormat = const_cast<char*>(_timeFormat);
+  
+  numVertexFields = _numVertexFields;
+  numVertices = _numVertices;
+  assert(3 == numVertexFields);
+  vertexFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_vertexFields);
+  vertexFields[0] = const_cast<double*>(_vertexField0);
+  vertexFields[1] = const_cast<double*>(_vertexField1);
+  vertexFields[2] = const_cast<double*>(_vertexField2);
+
+  numCellFields = _numCellFields;
+  numVertices = _numVertices;
+  assert(3 == numCellFields);
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataFaultMeshHex8::~DataWriterVTKDataFaultMeshHex8(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshHex8.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,77 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatafaultmeshhex8_hh)
+#define pylith_meshio_datawritervtkdatafaultmeshhex8_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataFaultMeshHex8;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataFaultMeshHex8 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // DataWriterVTKDataFaultMeshHex8
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataFaultMeshHex8(void);
+
+  /// Destructor
+  ~DataWriterVTKDataFaultMeshHex8(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _faultLabel; ///< Name of group of vertices for fault.
+  static const int _faultId; ///< Material identifier for fault.
+
+  static const char* _timestepFilename; ///< Name of VTK file without fields.
+  static const char* _vertexFilename; ///< Name of VTK file for vertex fields.
+  static const char* _cellFilename; ///< Name of VTK file for cell fields.
+
+  static const double _time; ///< Time for fields.
+  static const char* _timeFormat; ///< Format for time stamp.
+
+  /// @name Vertex field information.
+  //@{
+  static const int _numVertexFields; ///< Number of vertex fields.
+  static const int _numVertices; ///< Number of vertices.
+  static const FieldStruct _vertexFields[]; ///< Array of vertex fields.
+
+  static const double _vertexField0[]; ///< Values for vertex field 0.
+  static const double _vertexField1[]; ///< Values for vertex field 1.
+  static const double _vertexField2[]; ///< Values for vertex field 2.
+  //@}
+
+  /// @name Cell field information.
+  //@{
+  static const int _numCellFields; ///< Number of cell fields.
+  static const int _numCells; ///< Number of cells.
+  static const FieldStruct _cellFields[]; ///< Array of cell fields.
+
+  static const double _cellField0[]; ///< Values for cell field 0.
+  static const double _cellField1[]; ///< Values for cell field 1.
+  static const double _cellField2[]; ///< Values for cell field 2.
+  //@}
+
+}; // DataWriterVTKDataFaultMeshHex8
+
+#endif // pylith_meshio_datawritervtkdatafaultmeshhex8_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,112 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataFaultMeshQuad4.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_meshFilename = 
+  "data/quad4.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_timestepFilename = 
+  "quad4_fault.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_vertexFilename = 
+  "quad4_fault_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_cellFilename = 
+  "quad4_fault_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_numVertices = 2;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_vertexFields[] = {
+  { "displacements", VECTOR_FIELD, 2 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_vertexField0[] = {
+  1.1, 2.2,
+  3.3, 4.4,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_vertexField1[] = {
+  2.1, 3.2,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+};
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_cellFields[] = {
+  { "traction", VECTOR_FIELD, 2 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 3 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_cellField0[] = {
+  1.1, 2.2,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshQuad4::_cellField2[] = {
+  1.2, 2.3, 3.4,
+};
+
+pylith::meshio::DataWriterVTKDataFaultMeshQuad4::DataWriterVTKDataFaultMeshQuad4(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  faultLabel = const_cast<char*>(_faultLabel);
+  faultId = _faultId;
+
+  timestepFilename = const_cast<char*>(_timestepFilename);
+  vertexFilename = const_cast<char*>(_vertexFilename);
+  cellFilename = const_cast<char*>(_cellFilename);
+
+  time = _time;
+  timeFormat = const_cast<char*>(_timeFormat);
+  
+  numVertexFields = _numVertexFields;
+  assert(3 == numVertexFields);
+  numVertices = _numVertices;
+  vertexFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_vertexFields);
+  vertexFields[0] = const_cast<double*>(_vertexField0);
+  vertexFields[1] = const_cast<double*>(_vertexField1);
+  vertexFields[2] = const_cast<double*>(_vertexField2);
+
+  numCellFields = _numCellFields;
+  assert(3 == numCellFields);
+  numVertices = _numVertices;
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataFaultMeshQuad4::~DataWriterVTKDataFaultMeshQuad4(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshQuad4.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,77 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatafaultmeshquad4_hh)
+#define pylith_meshio_datawritervtkdatafaultmeshquad4_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataFaultMeshQuad4;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataFaultMeshQuad4 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // DataWriterVTKDataFaultMeshQuad4
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataFaultMeshQuad4(void);
+
+  /// Destructor
+  ~DataWriterVTKDataFaultMeshQuad4(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _faultLabel; ///< Name of group of vertices for fault.
+  static const int _faultId; ///< Material identifier for fault.
+
+  static const char* _timestepFilename; ///< Name of VTK file without fields.
+  static const char* _vertexFilename; ///< Name of VTK file for vertex fields.
+  static const char* _cellFilename; ///< Name of VTK file for cell fields.
+
+  static const double _time; ///< Time for fields.
+  static const char* _timeFormat; ///< Format for time stamp.
+
+  /// @name Vertex field information.
+  //@{
+  static const int _numVertexFields; ///< Number of vertex fields.
+  static const int _numVertices; ///< Number of vertices.
+  static const FieldStruct _vertexFields[]; ///< Array of vertex fields.
+
+  static const double _vertexField0[]; ///< Values for vertex field 0.
+  static const double _vertexField1[]; ///< Values for vertex field 1.
+  static const double _vertexField2[]; ///< Values for vertex field 2.
+  //@}
+
+  /// @name Cell field information.
+  //@{
+  static const int _numCellFields; ///< Number of cell fields.
+  static const int _numCells; ///< Number of cells.
+  static const FieldStruct _cellFields[]; ///< Array of cell fields.
+
+  static const double _cellField0[]; ///< Values for cell field 0.
+  static const double _cellField1[]; ///< Values for cell field 1.
+  static const double _cellField2[]; ///< Values for cell field 2.
+  //@}
+
+}; // DataWriterVTKDataFaultMeshQuad4
+
+#endif // pylith_meshio_datawritervtkdatafaultmeshquad4_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,114 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataFaultMeshTet4.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTet4::_meshFilename = 
+  "data/tet4.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTet4::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataFaultMeshTet4::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTet4::_timestepFilename = 
+  "tet4_fault.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTet4::_vertexFilename = 
+  "tet4_fault_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTet4::_cellFilename = 
+  "tet4_fault_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTet4::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshTet4::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshTet4::_numVertices = 3;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshTet4::_vertexFields[] = {
+  { "displacements", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_vertexField0[] = {
+  1.1, 2.2, 3.3,
+  4.4, 5.5, 6.6,
+  7.7, 8.8, 9.9,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_vertexField1[] = {
+  2.1, 3.2, 4.3,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+  5.6, 6.7,
+};
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshTet4::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshTet4::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshTet4::_cellFields[] = {
+  { "traction", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 6 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_cellField0[] = {
+  1.1, 2.2, 3.3,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTet4::_cellField2[] = {
+  1.2, 2.3, 3.4, 4.5, 5.6, 6.7,
+};
+
+pylith::meshio::DataWriterVTKDataFaultMeshTet4::DataWriterVTKDataFaultMeshTet4(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  faultLabel = const_cast<char*>(_faultLabel);
+  faultId = _faultId;
+
+  timestepFilename = const_cast<char*>(_timestepFilename);
+  vertexFilename = const_cast<char*>(_vertexFilename);
+  cellFilename = const_cast<char*>(_cellFilename);
+
+  time = _time;
+  timeFormat = const_cast<char*>(_timeFormat);
+  
+  numVertexFields = _numVertexFields;
+  assert(3 == numVertexFields);
+  numVertices = _numVertices;
+  vertexFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_vertexFields);
+  vertexFields[0] = const_cast<double*>(_vertexField0);
+  vertexFields[1] = const_cast<double*>(_vertexField1);
+  vertexFields[2] = const_cast<double*>(_vertexField2);
+
+  numCellFields = _numCellFields;
+  assert(3 == numCellFields);
+  numVertices = _numVertices;
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataFaultMeshTet4::~DataWriterVTKDataFaultMeshTet4(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTet4.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,77 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatafaultmeshtet4_hh)
+#define pylith_meshio_datawritervtkdatafaultmeshtet4_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataFaultMeshTet4;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataFaultMeshTet4 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // DataWriterVTKDataFaultMeshTet4
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataFaultMeshTet4(void);
+
+  /// Destructor
+  ~DataWriterVTKDataFaultMeshTet4(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _faultLabel; ///< Name of group of vertices for fault.
+  static const int _faultId; ///< Material identifier for fault.
+
+  static const char* _timestepFilename; ///< Name of VTK file without fields.
+  static const char* _vertexFilename; ///< Name of VTK file for vertex fields.
+  static const char* _cellFilename; ///< Name of VTK file for cell fields.
+
+  static const double _time; ///< Time for fields.
+  static const char* _timeFormat; ///< Format for time stamp.
+
+  /// @name Vertex field information.
+  //@{
+  static const int _numVertexFields; ///< Number of vertex fields.
+  static const int _numVertices; ///< Number of vertices.
+  static const FieldStruct _vertexFields[]; ///< Array of vertex fields.
+
+  static const double _vertexField0[]; ///< Values for vertex field 0.
+  static const double _vertexField1[]; ///< Values for vertex field 1.
+  static const double _vertexField2[]; ///< Values for vertex field 2.
+  //@}
+
+  /// @name Cell field information.
+  //@{
+  static const int _numCellFields; ///< Number of cell fields.
+  static const int _numCells; ///< Number of cells.
+  static const FieldStruct _cellFields[]; ///< Array of cell fields.
+
+  static const double _cellField0[]; ///< Values for cell field 0.
+  static const double _cellField1[]; ///< Values for cell field 1.
+  static const double _cellField2[]; ///< Values for cell field 2.
+  //@}
+
+}; // DataWriterVTKDataFaultMeshTet4
+
+#endif // pylith_meshio_datawritervtkdatafaultmeshtet4_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.cc	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,112 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataFaultMeshTri3.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTri3::_meshFilename = 
+  "data/tri3.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTri3::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataFaultMeshTri3::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTri3::_timestepFilename = 
+  "tri3_fault.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTri3::_vertexFilename = 
+  "tri3_fault_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTri3::_cellFilename = 
+  "tri3_fault_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataFaultMeshTri3::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshTri3::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshTri3::_numVertices = 2;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshTri3::_vertexFields[] = {
+  { "displacements", VECTOR_FIELD, 2 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_vertexField0[] = {
+  1.1, 2.2,
+  3.3, 4.4,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_vertexField1[] = {
+  2.1, 3.2,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+};
+
+const int pylith::meshio::DataWriterVTKDataFaultMeshTri3::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataFaultMeshTri3::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataFaultMeshTri3::_cellFields[] = {
+  { "traction", VECTOR_FIELD, 2 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 3 },
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_cellField0[] = {
+  1.1, 2.2,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataFaultMeshTri3::_cellField2[] = {
+  1.2, 2.3, 3.4,
+};
+
+pylith::meshio::DataWriterVTKDataFaultMeshTri3::DataWriterVTKDataFaultMeshTri3(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  faultLabel = const_cast<char*>(_faultLabel);
+  faultId = _faultId;
+
+  timestepFilename = const_cast<char*>(_timestepFilename);
+  vertexFilename = const_cast<char*>(_vertexFilename);
+  cellFilename = const_cast<char*>(_cellFilename);
+
+  time = _time;
+  timeFormat = const_cast<char*>(_timeFormat);
+  
+  numVertexFields = _numVertexFields;
+  numVertices = _numVertices;
+  assert(3 == numVertexFields);
+  vertexFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_vertexFields);
+  vertexFields[0] = const_cast<double*>(_vertexField0);
+  vertexFields[1] = const_cast<double*>(_vertexField1);
+  vertexFields[2] = const_cast<double*>(_vertexField2);
+
+  numCellFields = _numCellFields;
+  numVertices = _numVertices;
+  assert(3 == numCellFields);
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataFaultMeshTri3::~DataWriterVTKDataFaultMeshTri3(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataFaultMeshTri3.hh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,77 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatafaultmeshtri3_hh)
+#define pylith_meshio_datawritervtkdatafaultmeshtri3_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataFaultMeshTri3;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataFaultMeshTri3 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // DataWriterVTKDataFaultMeshTri3
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataFaultMeshTri3(void);
+
+  /// Destructor
+  ~DataWriterVTKDataFaultMeshTri3(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _faultLabel; ///< Name of group of vertices for fault.
+  static const int _faultId; ///< Material identifier for fault.
+
+  static const char* _timestepFilename; ///< Name of VTK file without fields.
+  static const char* _vertexFilename; ///< Name of VTK file for vertex fields.
+  static const char* _cellFilename; ///< Name of VTK file for cell fields.
+
+  static const double _time; ///< Time for fields.
+  static const char* _timeFormat; ///< Format for time stamp.
+
+  /// @name Vertex field information.
+  //@{
+  static const int _numVertexFields; ///< Number of vertex fields.
+  static const int _numVertices; ///< Number of vertices.
+  static const FieldStruct _vertexFields[]; ///< Array of vertex fields.
+
+  static const double _vertexField0[]; ///< Values for vertex field 0.
+  static const double _vertexField1[]; ///< Values for vertex field 1.
+  static const double _vertexField2[]; ///< Values for vertex field 2.
+  //@}
+
+  /// @name Cell field information.
+  //@{
+  static const int _numCellFields; ///< Number of cell fields.
+  static const int _numCells; ///< Number of cells.
+  static const FieldStruct _cellFields[]; ///< Array of cell fields.
+
+  static const double _cellField0[]; ///< Values for cell field 0.
+  static const double _cellField1[]; ///< Values for cell field 1.
+  static const double _cellField2[]; ///< Values for cell field 2.
+  //@}
+
+}; // DataWriterVTKDataFaultMeshTri3
+
+#endif // pylith_meshio_datawritervtkdatafaultmeshtri3_hh
+
+// End of file

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am	2008-02-29 21:13:04 UTC (rev 11295)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am	2008-03-01 21:59:37 UTC (rev 11296)
@@ -55,7 +55,19 @@
 	tet4_sub_cell_t10.vtk \
 	hex8_sub_t10.vtk \
 	hex8_sub_vertex_t10.vtk \
-	hex8_sub_cell_t10.vtk
+	hex8_sub_cell_t10.vtk \
+	tri3_fault_t10.vtk \
+	tri3_fault_vertex_t10.vtk \
+	tri3_fault_cell_t10.vtk \
+	quad4_fault_t10.vtk \
+	quad4_fault_vertex_t10.vtk \
+	quad4_fault_cell_t10.vtk \
+	tet4_fault_t10.vtk \
+	tet4_fault_vertex_t10.vtk \
+	tet4_fault_cell_t10.vtk \
+	hex8_fault_t10.vtk \
+	hex8_fault_vertex_t10.vtk \
+	hex8_fault_cell_t10.vtk
 
 noinst_TMP =
 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_cell_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,22 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 4 double
+0 -1 -1
+0 1 -1
+0 -1 1
+0 1 1
+CELLS 1 5
+4  2 3 1 0
+CELL_TYPES 1
+9
+CELL_DATA 1
+VECTORS traction double
+1.1 2.2 3.3
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+SCALARS other double 6
+LOOKUP_TABLE default
+1.2 2.3 3.4 4.5 5.6 6.7

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,13 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 4 double
+0 -1 -1
+0 1 -1
+0 -1 1
+0 1 1
+CELLS 1 5
+4  2 3 1 0
+CELL_TYPES 1
+9

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_vertex_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_vertex_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_fault_vertex_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,31 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 4 double
+0 -1 -1
+0 1 -1
+0 -1 1
+0 1 1
+CELLS 1 5
+4  2 3 1 0
+CELL_TYPES 1
+9
+POINT_DATA 4
+VECTORS displacements double
+1.1 2.2 3.3
+4.4 5.5 6.6
+7.7 8.8 9.9
+10.1 11.2 12.3
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+4.3
+5.4
+SCALARS other double 2
+LOOKUP_TABLE default
+1.2 2.3
+3.4 4.5
+5.6 6.7
+7.8 8.9

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh	2008-02-29 21:13:04 UTC (rev 11295)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh	2008-03-01 21:59:37 UTC (rev 11296)
@@ -34,6 +34,14 @@
     }
   }
   group = {
+    name = fault
+    type = vertices
+    count = 2
+    indices = {
+      2  3
+    }
+  }
+  group = {
     name = bc
     type = vertices
     count = 3

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_cell_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,19 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 2 double
+0 -1 0.0
+0 1 0.0
+CELLS 1 3
+2  1 0
+CELL_TYPES 1
+3
+CELL_DATA 1
+VECTORS traction double
+1.1 2.2 0.0
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+VECTORS other double
+1.2 2.3 3.4

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,11 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 2 double
+0 -1 0.0
+0 1 0.0
+CELLS 1 3
+2  1 0
+CELL_TYPES 1
+3

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_vertex_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_vertex_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_fault_vertex_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,23 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 2 double
+0 -1 0.0
+0 1 0.0
+CELLS 1 3
+2  1 0
+CELL_TYPES 1
+3
+POINT_DATA 2
+VECTORS displacements double
+1.1 2.2 0.0
+3.3 4.4 0.0
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+SCALARS other double 2
+LOOKUP_TABLE default
+1.2 2.3
+3.4 4.5

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_cell_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,21 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 3 double
+0 -1 0
+0 0 1
+0 1 0
+CELLS 1 4
+3  1 0 2
+CELL_TYPES 1
+5
+CELL_DATA 1
+VECTORS traction double
+1.1 2.2 3.3
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+SCALARS other double 6
+LOOKUP_TABLE default
+1.2 2.3 3.4 4.5 5.6 6.7

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,12 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 3 double
+0 -1 0
+0 0 1
+0 1 0
+CELLS 1 4
+3  1 0 2
+CELL_TYPES 1
+5

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_vertex_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_vertex_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_fault_vertex_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,27 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 3 double
+0 -1 0
+0 0 1
+0 1 0
+CELLS 1 4
+3  1 0 2
+CELL_TYPES 1
+5
+POINT_DATA 3
+VECTORS displacements double
+1.1 2.2 3.3
+4.4 5.5 6.6
+7.7 8.8 9.9
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+4.3
+SCALARS other double 2
+LOOKUP_TABLE default
+1.2 2.3
+3.4 4.5
+5.6 6.7

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_cell_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,19 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 2 double
+0 -1 0.0
+0 1 0.0
+CELLS 1 3
+2  1 0
+CELL_TYPES 1
+3
+CELL_DATA 1
+VECTORS traction double
+1.1 2.2 0.0
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+VECTORS other double
+1.2 2.3 3.4

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,11 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 2 double
+0 -1 0.0
+0 1 0.0
+CELLS 1 3
+2  1 0
+CELL_TYPES 1
+3

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_vertex_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_vertex_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tri3_fault_vertex_t10.vtk	2008-03-01 21:59:37 UTC (rev 11296)
@@ -0,0 +1,23 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 2 double
+0 -1 0.0
+0 1 0.0
+CELLS 1 3
+2  1 0
+CELL_TYPES 1
+3
+POINT_DATA 2
+VECTORS displacements double
+1.1 2.2 0.0
+3.3 4.4 0.0
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+SCALARS other double 2
+LOOKUP_TABLE default
+1.2 2.3
+3.4 4.5



More information about the cig-commits mailing list