[cig-commits] r14842 - in short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio: . data

brad at geodynamics.org brad at geodynamics.org
Fri May 1 17:48:04 PDT 2009


Author: brad
Date: 2009-05-01 17:48:02 -0700 (Fri, 01 May 2009)
New Revision: 14842

Added:
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.hh
Removed:
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.hh
Modified:
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/Makefile.am
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMesh.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.hh
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.cc
   short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.hh
Log:
Started adding missing output unit tests.

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/Makefile.am
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/Makefile.am	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/Makefile.am	2009-05-02 00:48:02 UTC (rev 14842)
@@ -33,17 +33,17 @@
 	TestDataWriterVTKMeshQuad4.cc \
 	TestDataWriterVTKMeshTet4.cc \
 	TestDataWriterVTKMeshHex8.cc \
+	TestDataWriterVTKMatMeshLine2.cc \
+	TestDataWriterVTKMatMeshTri3.cc \
+	TestDataWriterVTKMatMeshQuad4.cc \
+	TestDataWriterVTKMatMeshTet4.cc \
+	TestDataWriterVTKMatMeshHex8.cc \
 	TestDataWriterVTKBCMesh.cc \
 	TestDataWriterVTKBCMeshTri3.cc \
 	TestDataWriterVTKBCMeshQuad4.cc \
 	TestDataWriterVTKBCMeshTet4.cc \
 	TestDataWriterVTKBCMeshHex8.cc \
 	TestDataWriterVTKSubMesh.cc \
-	TestDataWriterVTKSubMeshLine2.cc \
-	TestDataWriterVTKSubMeshTri3.cc \
-	TestDataWriterVTKSubMeshQuad4.cc \
-	TestDataWriterVTKSubMeshTet4.cc \
-	TestDataWriterVTKSubMeshHex8.cc \
 	TestOutputManager.cc \
 	TestOutputSolnSubset.cc \
 	TestDataWriterVTKFaultMesh.cc \
@@ -53,7 +53,13 @@
 	TestDataWriterVTKFaultMeshHex8.cc \
 	test_meshio.cc
 
+#	TestDataWriterVTKSubMeshLine2.cc \
+#	TestDataWriterVTKSubMeshTri3.cc \
+#	TestDataWriterVTKSubMeshQuad4.cc \
+#	TestDataWriterVTKSubMeshTet4.cc \
+#	TestDataWriterVTKSubMeshHex8.cc 
 
+
 noinst_HEADERS = \
 	TestCellFilterAvg.hh \
 	TestDataWriterVTK.hh \
@@ -63,6 +69,11 @@
 	TestDataWriterVTKMeshQuad4.hh \
 	TestDataWriterVTKMeshTet4.hh \
 	TestDataWriterVTKMeshHex8.hh \
+	TestDataWriterVTKMatMeshLine2.hh \
+	TestDataWriterVTKMatMeshTri3.hh \
+	TestDataWriterVTKMatMeshQuad4.hh \
+	TestDataWriterVTKMatMeshTet4.hh \
+	TestDataWriterVTKMatMeshHex8.hh \
 	TestDataWriterVTKSubMeshLine2.hh \
 	TestDataWriterVTKSubMeshTri3.hh \
 	TestDataWriterVTKSubMeshQuad4.hh \
@@ -94,11 +105,11 @@
 	data/DataWriterVTKDataMeshQuad4.cc \
 	data/DataWriterVTKDataMeshTet4.cc \
 	data/DataWriterVTKDataMeshHex8.cc \
-	data/DataWriterVTKDataSubMeshLine2.cc \
-	data/DataWriterVTKDataSubMeshTri3.cc \
-	data/DataWriterVTKDataSubMeshQuad4.cc \
-	data/DataWriterVTKDataSubMeshTet4.cc \
-	data/DataWriterVTKDataSubMeshHex8.cc \
+	data/DataWriterVTKDataMatMeshLine2.cc \
+	data/DataWriterVTKDataMatMeshTri3.cc \
+	data/DataWriterVTKDataMatMeshQuad4.cc \
+	data/DataWriterVTKDataMatMeshTet4.cc \
+	data/DataWriterVTKDataMatMeshHex8.cc \
 	data/DataWriterVTKDataFaultMeshTri3.cc \
 	data/DataWriterVTKDataFaultMeshQuad4.cc \
 	data/DataWriterVTKDataFaultMeshTet4.cc \
@@ -121,6 +132,12 @@
 	data/MeshDataCubitHex.cc \
 	data/MeshDataLagritTet.cc
 
+#	data/DataWriterVTKDataSubMeshLine2.cc \
+#	data/DataWriterVTKDataSubMeshTri3.cc \
+#	data/DataWriterVTKDataSubMeshQuad4.cc \
+#	data/DataWriterVTKDataSubMeshTet4.cc \
+#	data/DataWriterVTKDataSubMeshHex8.cc 
+
 noinst_HEADERS += \
 	data/DataWriterVTKData.hh \
 	data/DataWriterVTKDataMeshLine2.hh \
@@ -128,11 +145,11 @@
 	data/DataWriterVTKDataMeshQuad4.hh \
 	data/DataWriterVTKDataMeshTet4.hh \
 	data/DataWriterVTKDataMeshHex8.hh \
-	data/DataWriterVTKDataSubMeshLine2.hh \
-	data/DataWriterVTKDataSubMeshTri3.hh \
-	data/DataWriterVTKDataSubMeshQuad4.hh \
-	data/DataWriterVTKDataSubMeshTet4.hh \
-	data/DataWriterVTKDataSubMeshHex8.hh \
+	data/DataWriterVTKDataMatMeshLine2.hh \
+	data/DataWriterVTKDataMatMeshTri3.hh \
+	data/DataWriterVTKDataMatMeshQuad4.hh \
+	data/DataWriterVTKDataMatMeshTet4.hh \
+	data/DataWriterVTKDataMatMeshHex8.hh \
 	data/DataWriterVTKDataFaultMeshTri3.hh \
 	data/DataWriterVTKDataFaultMeshQuad4.hh \
 	data/DataWriterVTKDataFaultMeshTet4.hh \
@@ -155,6 +172,13 @@
 	data/MeshDataCubitHex.hh \
 	data/MeshDataLagritTet.hh
 
+
+#	data/DataWriterVTKDataSubMeshLine2.hh \
+#	data/DataWriterVTKDataSubMeshTri3.hh \
+#	data/DataWriterVTKDataSubMeshQuad4.hh \
+#	data/DataWriterVTKDataSubMeshTet4.hh \
+#	data/DataWriterVTKDataSubMeshHex8.hh 
+
 AM_CPPFLAGS = \
 	$(PETSC_SIEVE_FLAGS) $(PETSC_INCLUDE) \
 	-I$(PYTHON_INCDIR) $(PYTHON_EGG_CPPFLAGS)

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,35 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKMatMeshHex8.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataMatMeshHex8.hh" // USES DataWriterVTKDataMatMeshHex8
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKMatMeshHex8 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKMatMeshHex8::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataMatMeshHex8;
+  _flipFault = true;
+
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKMatMeshHex8.hh
+ *
+ * @brief C++ TestDataWriterVTKMatMeshHex8 object
+ *
+ * C++ unit testing for DataWriterVTKMatMeshHex8.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtksubmeshhex8_hh)
+#define pylith_meshio_testdatawritervtksubmeshhex8_hh
+
+#include "TestDataWriterVTKMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKMatMeshHex8;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKMatMeshHex8 : public TestDataWriterVTKMesh
+{ // class TestDataWriterVTKMatMeshHex8
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKMatMeshHex8 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKMatMeshHex8
+
+#endif // pylith_meshio_testdatawritervtksubmeshhex8_hh
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKMatMeshLine2.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataMatMeshLine2.hh" // USES DataWriterVTKDataMeshLine2
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKMatMeshLine2 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKMatMeshLine2::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataMatMeshLine2;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKMatMeshLine2.hh
+ *
+ * @brief C++ TestDataWriterVTKMatMeshLine2 object
+ *
+ * C++ unit testing for DataWriterVTKMatMeshLine2.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtksubmeshline2_hh)
+#define pylith_meshio_testdatawritervtksubmeshline2_hh
+
+#include "TestDataWriterVTKMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKMatMeshLine2;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKMatMeshLine2 : public TestDataWriterVTKMesh
+{ // class TestDataWriterVTKMatMeshLine2
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKMatMeshLine2 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKMatMeshLine2
+
+#endif // pylith_meshio_testdatawritervtksubmeshline2_hh
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKMatMeshQuad4.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataMatMeshQuad4.hh" // USES DataWriterVTKDataMeshQuad4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKMatMeshQuad4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKMatMeshQuad4::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataMatMeshQuad4;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKMatMeshQuad4.hh
+ *
+ * @brief C++ TestDataWriterVTKMatMeshQuad4 object
+ *
+ * C++ unit testing for DataWriterVTKMatMeshQuad4.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtksubmeshquad4_hh)
+#define pylith_meshio_testdatawritervtksubmeshquad4_hh
+
+#include "TestDataWriterVTKMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKMatMeshQuad4;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKMatMeshQuad4 : public TestDataWriterVTKMesh
+{ // class TestDataWriterVTKMatMeshQuad4
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKMatMeshQuad4 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKMatMeshQuad4
+
+#endif // pylith_meshio_testdatawritervtksubmeshquad4_hh
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKMatMeshTet4.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataMatMeshTet4.hh" // USES DataWriterVTKDataMeshTet4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKMatMeshTet4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKMatMeshTet4::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataMatMeshTet4;
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKMatMeshTet4.hh
+ *
+ * @brief C++ TestDataWriterVTKMatMeshTet4 object
+ *
+ * C++ unit testing for DataWriterVTKMatMeshTet4.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtksubmeshtet4_hh)
+#define pylith_meshio_testdatawritervtksubmeshtet4_hh
+
+#include "TestDataWriterVTKMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKMatMeshTet4;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKMatMeshTet4 : public TestDataWriterVTKMesh
+{ // class TestDataWriterVTKMatMeshTet4
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKMatMeshTet4 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKMatMeshTet4
+
+#endif // pylith_meshio_testdatawritervtksubmeshtet4_hh
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,35 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKMatMeshTri3.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataMatMeshTri3.hh" // USES DataWriterVTKDataMeshTri3
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKMatMeshTri3 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKMatMeshTri3::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataMatMeshTri3;
+  _flipFault = true;
+
+  _initialize();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/meshio/TestDataWriterVTKMatMeshTri3.hh
+ *
+ * @brief C++ TestDataWriterVTKMatMeshTri3 object
+ *
+ * C++ unit testing for DataWriterVTKMatMeshTri3.
+ */
+
+#if !defined(pylith_meshio_testdatawritervtksubmeshtri3_hh)
+#define pylith_meshio_testdatawritervtksubmeshtri3_hh
+
+#include "TestDataWriterVTKMesh.hh"
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace meshio {
+    class TestDataWriterVTKMatMeshTri3;
+  } // meshio
+} // pylith
+
+/// C++ unit testing for DataWriterVTK
+class pylith::meshio::TestDataWriterVTKMatMeshTri3 : public TestDataWriterVTKMesh
+{ // class TestDataWriterVTKMatMeshTri3
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUITE( TestDataWriterVTKMatMeshTri3 );
+
+  CPPUNIT_TEST( testTimeStep );
+  CPPUNIT_TEST( testWriteVertexField );
+  CPPUNIT_TEST( testWriteCellField );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestDataWriterVTKMatMeshTri3
+
+#endif // pylith_meshio_testdatawritervtksubmeshtri3_hh
+
+
+// End of file 

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMesh.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMesh.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMesh.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -214,6 +214,7 @@
     fault.adjustTopology(_mesh, _flipFault);
   } // if
 
+  CPPUNIT_ASSERT(0 != _data->bcLabel);
   delete _submesh; _submesh = new topology::SubMesh(*_mesh, _data->bcLabel);
   const ALE::Obj<topology::Mesh::SieveMesh>& sieveMesh = _mesh->sieveMesh();
   assert(!sieveMesh.isNull());

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -24,7 +24,7 @@
 void
 pylith::meshio::TestDataWriterVTKSubMeshHex8::setUp(void)
 { // setUp
-  TestDataWriterVTKMesh::setUp();
+  TestDataWriterVTKSubMesh::setUp();
   _data = new DataWriterVTKDataSubMeshHex8;
   _flipFault = true;
 

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -21,7 +21,7 @@
 #if !defined(pylith_meshio_testdatawritervtksubmeshhex8_hh)
 #define pylith_meshio_testdatawritervtksubmeshhex8_hh
 
-#include "TestDataWriterVTKMesh.hh"
+#include "TestDataWriterVTKSubMesh.hh"
 
 /// Namespace for pylith package
 namespace pylith {
@@ -31,7 +31,7 @@
 } // pylith
 
 /// C++ unit testing for DataWriterVTK
-class pylith::meshio::TestDataWriterVTKSubMeshHex8 : public TestDataWriterVTKMesh
+class pylith::meshio::TestDataWriterVTKSubMeshHex8 : public TestDataWriterVTKSubMesh
 { // class TestDataWriterVTKSubMeshHex8
 
   // CPPUNIT TEST SUITE /////////////////////////////////////////////////

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -24,7 +24,7 @@
 void
 pylith::meshio::TestDataWriterVTKSubMeshLine2::setUp(void)
 { // setUp
-  TestDataWriterVTKMesh::setUp();
+  TestDataWriterVTKSubMesh::setUp();
   _data = new DataWriterVTKDataSubMeshLine2;
   _initialize();
 } // setUp

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshLine2.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -21,7 +21,7 @@
 #if !defined(pylith_meshio_testdatawritervtksubmeshline2_hh)
 #define pylith_meshio_testdatawritervtksubmeshline2_hh
 
-#include "TestDataWriterVTKMesh.hh"
+#include "TestDataWriterVTKSubMesh.hh"
 
 /// Namespace for pylith package
 namespace pylith {
@@ -31,7 +31,7 @@
 } // pylith
 
 /// C++ unit testing for DataWriterVTK
-class pylith::meshio::TestDataWriterVTKSubMeshLine2 : public TestDataWriterVTKMesh
+class pylith::meshio::TestDataWriterVTKSubMeshLine2 : public TestDataWriterVTKSubMesh
 { // class TestDataWriterVTKSubMeshLine2
 
   // CPPUNIT TEST SUITE /////////////////////////////////////////////////

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -24,7 +24,7 @@
 void
 pylith::meshio::TestDataWriterVTKSubMeshQuad4::setUp(void)
 { // setUp
-  TestDataWriterVTKMesh::setUp();
+  TestDataWriterVTKSubMesh::setUp();
   _data = new DataWriterVTKDataSubMeshQuad4;
   _initialize();
 } // setUp

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -21,7 +21,7 @@
 #if !defined(pylith_meshio_testdatawritervtksubmeshquad4_hh)
 #define pylith_meshio_testdatawritervtksubmeshquad4_hh
 
-#include "TestDataWriterVTKMesh.hh"
+#include "TestDataWriterVTKSubMesh.hh"
 
 /// Namespace for pylith package
 namespace pylith {
@@ -31,7 +31,7 @@
 } // pylith
 
 /// C++ unit testing for DataWriterVTK
-class pylith::meshio::TestDataWriterVTKSubMeshQuad4 : public TestDataWriterVTKMesh
+class pylith::meshio::TestDataWriterVTKSubMeshQuad4 : public TestDataWriterVTKSubMesh
 { // class TestDataWriterVTKSubMeshQuad4
 
   // CPPUNIT TEST SUITE /////////////////////////////////////////////////

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -24,7 +24,7 @@
 void
 pylith::meshio::TestDataWriterVTKSubMeshTet4::setUp(void)
 { // setUp
-  TestDataWriterVTKMesh::setUp();
+  TestDataWriterVTKSubMesh::setUp();
   _data = new DataWriterVTKDataSubMeshTet4;
   _initialize();
 } // setUp

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -21,7 +21,7 @@
 #if !defined(pylith_meshio_testdatawritervtksubmeshtet4_hh)
 #define pylith_meshio_testdatawritervtksubmeshtet4_hh
 
-#include "TestDataWriterVTKMesh.hh"
+#include "TestDataWriterVTKSubMesh.hh"
 
 /// Namespace for pylith package
 namespace pylith {
@@ -31,7 +31,7 @@
 } // pylith
 
 /// C++ unit testing for DataWriterVTK
-class pylith::meshio::TestDataWriterVTKSubMeshTet4 : public TestDataWriterVTKMesh
+class pylith::meshio::TestDataWriterVTKSubMeshTet4 : public TestDataWriterVTKSubMesh
 { // class TestDataWriterVTKSubMeshTet4
 
   // CPPUNIT TEST SUITE /////////////////////////////////////////////////

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -24,7 +24,7 @@
 void
 pylith::meshio::TestDataWriterVTKSubMeshTri3::setUp(void)
 { // setUp
-  TestDataWriterVTKMesh::setUp();
+  TestDataWriterVTKSubMesh::setUp();
   _data = new DataWriterVTKDataSubMeshTri3;
   _flipFault = true;
 

Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestDataWriterVTKSubMeshTri3.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -21,7 +21,7 @@
 #if !defined(pylith_meshio_testdatawritervtksubmeshtri3_hh)
 #define pylith_meshio_testdatawritervtksubmeshtri3_hh
 
-#include "TestDataWriterVTKMesh.hh"
+#include "TestDataWriterVTKSubMesh.hh"
 
 /// Namespace for pylith package
 namespace pylith {
@@ -31,7 +31,7 @@
 } // pylith
 
 /// C++ unit testing for DataWriterVTK
-class pylith::meshio::TestDataWriterVTKSubMeshTri3 : public TestDataWriterVTKMesh
+class pylith::meshio::TestDataWriterVTKSubMeshTri3 : public TestDataWriterVTKSubMesh
 { // class TestDataWriterVTKSubMeshTri3
 
   // CPPUNIT TEST SUITE /////////////////////////////////////////////////

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.cc (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,156 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataMatMeshHex8.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_meshFilename = 
+  "data/hex8.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_cellsLabel = 
+  "material-id";
+const int pylith::meshio::DataWriterVTKDataMatMeshHex8::_labelId = 0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataMatMeshHex8::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_timestepFilename = 
+  "hex8_sub.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_vertexFilename = 
+  "hex8_sub_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_cellFilename = 
+  "hex8_sub_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshHex8::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataMatMeshHex8::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshHex8::_numVertices = 20;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshHex8::_vertexFields[] = {
+  { "displacements", topology::FieldBase::VECTOR, 3 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::OTHER, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_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,
+  1.2, 2.3, 3.4,
+  4.5, 5.6, 6.7,
+  7.8, 8.9, 9.0,
+  10.2, 11.3, 12.4,
+  1.3, 2.4, 3.5,
+  4.6, 5.7, 6.8,
+  7.9, 8.0, 9.1,
+  10.2, 11.3, 12.4,
+  13.5, 14.6, 15.7,
+  16.8, 17.9, 18.1,
+  19.2, 20.3, 21.4,
+  22.5, 23.6, 24.7,
+  25.5, 26.6, 27.7,
+  28.8, 29.9, 30.0,
+  31.1, 32.2, 33.3,
+  34.4, 35.5, 36.6
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8,
+  10.0, 12.1, 11.1, 13.1, 14.1, 15.1, 16.1, 17.1,
+  18.1, 19.1, 20.1, 21.1
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+  5.6, 6.7,
+  7.8, 8.9,
+  1.3, 2.4,
+  3.5, 4.6,
+  5.7, 6.8,
+  7.9, 8.0,
+  1.3, 2.4,
+  3.5, 4.6,
+  5.7, 6.8,
+  8.0, 1.4,
+  2.5, 3.6,
+  4.8, 1.5,
+  2.6, 3.7,
+  4.8, 5.9,
+  1.1, 1.2,
+  2.1, 2.2,
+  3.1, 3.2,
+  4.1, 4.2,
+};
+
+const int pylith::meshio::DataWriterVTKDataMatMeshHex8::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshHex8::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshHex8::_cellFields[] = {
+  { "traction", topology::FieldBase::VECTOR, 3 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::TENSOR, 6 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_cellField0[] = {
+  1.1, 2.2, 3.3,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshHex8::_cellField2[] = {
+  1.2, 2.3, 3.4, 4.5, 5.6, 6.7,
+};
+
+pylith::meshio::DataWriterVTKDataMatMeshHex8::DataWriterVTKDataMatMeshHex8(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  cellsLabel = const_cast<char*>(_cellsLabel);
+  labelId = _labelId;
+  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;
+  numCells = _numCells;
+  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::DataWriterVTKDataMatMeshHex8::~DataWriterVTKDataMatMeshHex8(void)
+{}
+
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.hh (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshHex8.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,76 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatamatmeshhex8_hh)
+#define pylith_meshio_datawritervtkdatamatmeshhex8_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataMatMeshHex8;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataMatMeshHex8 : public DataWriterVTKData
+{ // DataWriterVTKDataMatMeshHex8
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataMatMeshHex8(void);
+
+  /// Destructor
+  ~DataWriterVTKDataMatMeshHex8(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _cellsLabel; ///< Label defining subset of cells.
+  static const int _labelId; /// Value for label defining subset of cells.
+  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.
+  //@}
+
+}; // DataWriterVTKDataMatMeshHex8
+
+#endif // pylith_meshio_datawritervtkdatamatmeshhex8_hh
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.cc (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.cc)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,120 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataMatMeshLine2.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_meshFilename = 
+  "data/line2.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_cellsLabel = 
+  "material-id";
+const int pylith::meshio::DataWriterVTKDataMatMeshLine2::_labelId = 0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataMatMeshLine2::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_timestepFilename = 
+  "line2_sub.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_vertexFilename = 
+  "line2_sub_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_cellFilename = 
+  "line2_sub_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshLine2::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataMatMeshLine2::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshLine2::_numVertices = 5;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshLine2::_vertexFields[] = {
+  { "displacements", topology::FieldBase::VECTOR, 1 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::OTHER, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_vertexField0[] = {
+  1.1, 2.2, 3.3, 4.4, 5.5
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4, 6.5
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_vertexField2[] = {
+  1.2, 2.3, 
+  3.4, 4.5,
+  5.6, 6.7,
+  7.8, 8.9,
+  9.1, 10.2
+};
+
+const int pylith::meshio::DataWriterVTKDataMatMeshLine2::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshLine2::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshLine2::_cellFields[] = {
+  { "traction", topology::FieldBase::VECTOR, 1 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::TENSOR, 1 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_cellField0[] = {
+  1.1,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshLine2::_cellField2[] = {
+  1.2,
+};
+
+pylith::meshio::DataWriterVTKDataMatMeshLine2::DataWriterVTKDataMatMeshLine2(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  cellsLabel = const_cast<char*>(_cellsLabel);
+  labelId = _labelId;
+  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;
+  numCells = _numCells;
+  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::DataWriterVTKDataMatMeshLine2::~DataWriterVTKDataMatMeshLine2(void)
+{}
+
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.hh (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.hh)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshLine2.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,76 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatamatmeshline2_hh)
+#define pylith_meshio_datawritervtkdatamatmeshline2_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataMatMeshLine2;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataMatMeshLine2 : public DataWriterVTKData
+{ // DataWriterVTKDataMatMeshLine2
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataMatMeshLine2(void);
+
+  /// Destructor
+  ~DataWriterVTKDataMatMeshLine2(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _cellsLabel; ///< Label defining subset of cells.
+  static const int _labelId; /// Value for label defining subset of cells.
+  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.
+  //@}
+
+}; // DataWriterVTKDataMatMeshLine2
+
+#endif // pylith_meshio_datawritervtkdatamatmeshline2_hh
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.cc (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,120 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataMatMeshQuad4.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshQuad4::_meshFilename = 
+  "data/quad4.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshQuad4::_cellsLabel = 
+  "material-id";
+const int pylith::meshio::DataWriterVTKDataMatMeshQuad4::_labelId = 2;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshQuad4::_timestepFilename = 
+  "quad4_sub.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshQuad4::_vertexFilename = 
+  "quad4_sub_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshQuad4::_cellFilename = 
+  "quad4_sub_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataMatMeshQuad4::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshQuad4::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataMatMeshQuad4::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshQuad4::_numVertices = 6;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshQuad4::_vertexFields[] = {
+  { "displacements", topology::FieldBase::VECTOR, 2 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::OTHER, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshQuad4::_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::DataWriterVTKDataMatMeshQuad4::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4, 6.5, 7.6
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshQuad4::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+  5.6, 6.7,
+  7.8, 8.9,
+  9.8, 7.6,
+  6.5, 5.4
+};
+
+const int pylith::meshio::DataWriterVTKDataMatMeshQuad4::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshQuad4::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshQuad4::_cellFields[] = {
+  { "traction", topology::FieldBase::VECTOR, 2 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::TENSOR, 3 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshQuad4::_cellField0[] = {
+  1.1, 2.2,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshQuad4::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshQuad4::_cellField2[] = {
+  1.2, 2.3, 3.4,
+};
+
+pylith::meshio::DataWriterVTKDataMatMeshQuad4::DataWriterVTKDataMatMeshQuad4(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  cellsLabel = const_cast<char*>(_cellsLabel);
+  labelId = _labelId;
+
+  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);
+  numCells = _numCells;
+  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::DataWriterVTKDataMatMeshQuad4::~DataWriterVTKDataMatMeshQuad4(void)
+{}
+
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.hh (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshQuad4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,74 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatamatmeshquad4_hh)
+#define pylith_meshio_datawritervtkdatamatmeshquad4_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataMatMeshQuad4;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataMatMeshQuad4 : public DataWriterVTKData
+{ // DataWriterVTKDataMatMeshQuad4
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataMatMeshQuad4(void);
+
+  /// Destructor
+  ~DataWriterVTKDataMatMeshQuad4(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _cellsLabel; ///< Label defining subset of cells.
+  static const int _labelId; /// Value for label defining subset of cells.
+
+  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.
+  //@}
+
+}; // DataWriterVTKDataMatMeshQuad4
+
+#endif // pylith_meshio_datawritervtkdatamatmeshquad4_hh
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.cc (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,138 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataMatMeshTet4.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_meshFilename = 
+  "data/tet4.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_cellsLabel = 
+  "material-id";
+const int pylith::meshio::DataWriterVTKDataMatMeshTet4::_labelId = 1;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataMatMeshTet4::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_timestepFilename = 
+  "tet4_sub.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_vertexFilename = 
+  "tet4_sub_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_cellFilename = 
+  "tet4_sub_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTet4::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataMatMeshTet4::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshTet4::_numVertices = 11;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshTet4::_vertexFields[] = {
+  { "displacements", topology::FieldBase::VECTOR, 3 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::OTHER, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_vertexField0[] = {
+  1.1, 2.2, 3.3,
+  4.4, 5.5, 6.6,
+  7.7, 8.8, 9.9,
+  10.0, 11.1, 12.2,
+  13.3, 14.4, 15.5,
+  16.6, 17.7, 18.8,
+  19.9, 20.0, 21.1,
+  22.2, 23.3, 24.4,
+  25.5, 26.6, 27.7,
+  28.8, 29.9, 30.0,
+  31.1, 32.2, 33.3,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8, 10.9, 11.0, 12.1
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+  5.6, 6.7,
+  7.8, 8.9,
+  9.0, 10.1,
+  11.2, 12.3,
+  13.4, 14.5,
+  15.6, 16.7,
+  17.8, 18.9,
+  19.0, 20.1,
+  21.2, 22.3
+};
+
+const int pylith::meshio::DataWriterVTKDataMatMeshTet4::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshTet4::_numCells = 2;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshTet4::_cellFields[] = {
+  { "traction", topology::FieldBase::VECTOR, 3 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::TENSOR, 6 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_cellField0[] = {
+  1.1, 2.2, 3.3,
+  4.4, 5.5, 6.6,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_cellField1[] = {
+  2.1, 3.2
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTet4::_cellField2[] = {
+  1.2, 2.3, 3.4, 4.5, 5.6, 6.7,
+  7.8, 8.9, 9.0, 10.1, 11.2, 12.3,
+};
+
+pylith::meshio::DataWriterVTKDataMatMeshTet4::DataWriterVTKDataMatMeshTet4(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  cellsLabel = const_cast<char*>(_cellsLabel);
+  labelId = _labelId;
+  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);
+  numCells = _numCells;
+  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::DataWriterVTKDataMatMeshTet4::~DataWriterVTKDataMatMeshTet4(void)
+{}
+
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.hh (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTet4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,76 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatamatmeshtet4_hh)
+#define pylith_meshio_datawritervtkdatamatmeshtet4_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataMatMeshTet4;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataMatMeshTet4 : public DataWriterVTKData
+{ // DataWriterVTKDataMatMeshTet4
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataMatMeshTet4(void);
+
+  /// Destructor
+  ~DataWriterVTKDataMatMeshTet4(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _cellsLabel; ///< Label defining subset of cells.
+  static const int _labelId; /// Value for label defining subset of cells.
+  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.
+  //@}
+
+}; // DataWriterVTKDataMatMeshTet4
+
+#endif // pylith_meshio_datawritervtkdatamatmeshtet4_hh
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.cc (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.cc)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.cc	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,130 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#include "DataWriterVTKDataMatMeshTri3.hh"
+
+#include <assert.h> // USES assert()
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_meshFilename = 
+  "data/tri3.mesh";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_cellsLabel = 
+  "material-id";
+const int pylith::meshio::DataWriterVTKDataMatMeshTri3::_labelId = 0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_faultLabel = 
+  "fault";
+const int pylith::meshio::DataWriterVTKDataMatMeshTri3::_faultId = 100;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_timestepFilename = 
+  "tri3_sub.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_vertexFilename = 
+  "tri3_sub_vertex.vtk";
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_cellFilename = 
+  "tri3_sub_cell.vtk";
+
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_time = 1.0;
+
+const char* pylith::meshio::DataWriterVTKDataMatMeshTri3::_timeFormat = 
+  "%3.1f";
+
+const int pylith::meshio::DataWriterVTKDataMatMeshTri3::_numVertexFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshTri3::_numVertices = 8;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshTri3::_vertexFields[] = {
+  { "displacements", topology::FieldBase::VECTOR, 2 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::OTHER, 2 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_vertexField0[] = {
+  1.1, 2.2,
+  3.3, 4.4,
+  5.5, 6.6,
+  7.7, 8.8,
+  9.9, 10.0,
+  11.1, 12.2,
+  13.3, 14.4,
+  15.5, 16.6,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_vertexField2[] = {
+  1.2, 2.3,
+  3.4, 4.5,
+  5.6, 6.7,
+  7.8, 8.9,
+  9.0, 10.1,
+  11.2, 12.3,
+  13.4, 14.5,
+  15.6, 16.7
+};
+
+const int pylith::meshio::DataWriterVTKDataMatMeshTri3::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataMatMeshTri3::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataMatMeshTri3::_cellFields[] = {
+  { "traction", topology::FieldBase::VECTOR, 2 },
+  { "pressure", topology::FieldBase::SCALAR, 1 },
+  { "other", topology::FieldBase::TENSOR, 3 },
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_cellField0[] = {
+  1.1, 2.2,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_cellField1[] = {
+  2.1,
+};
+const double pylith::meshio::DataWriterVTKDataMatMeshTri3::_cellField2[] = {
+  1.2, 2.3, 3.4,
+};
+
+pylith::meshio::DataWriterVTKDataMatMeshTri3::DataWriterVTKDataMatMeshTri3(void)
+{ // constructor
+  meshFilename = const_cast<char*>(_meshFilename);
+  cellsLabel = const_cast<char*>(_cellsLabel);
+  labelId = _labelId;
+  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;
+  numCells = _numCells;
+  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::DataWriterVTKDataMatMeshTri3::~DataWriterVTKDataMatMeshTri3(void)
+{}
+
+
+// End of file

Copied: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.hh (from rev 14831, short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.hh)
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.hh	                        (rev 0)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataMatMeshTri3.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -0,0 +1,76 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_meshio_datawritervtkdatamatmeshtri3_hh)
+#define pylith_meshio_datawritervtkdatamatmeshtri3_hh
+
+#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataMatMeshTri3;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataMatMeshTri3 : public DataWriterVTKData
+{ // DataWriterVTKDataMatMeshTri3
+
+public: 
+
+  /// Constructor
+  DataWriterVTKDataMatMeshTri3(void);
+
+  /// Destructor
+  ~DataWriterVTKDataMatMeshTri3(void);
+
+private:
+
+  static const char* _meshFilename; ///< Name of mesh file.
+  static const char* _cellsLabel; ///< Label defining subset of cells.
+  static const int _labelId; /// Value for label defining subset of cells.
+  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.
+  //@}
+
+}; // DataWriterVTKDataMatMeshTri3
+
+#endif // pylith_meshio_datawritervtkdatamatmeshtri3_hh
+
+// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,156 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#include "DataWriterVTKDataSubMeshHex8.hh"
-
-#include <assert.h> // USES assert()
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_meshFilename = 
-  "data/hex8.mesh";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellsLabel = 
-  "material-id";
-const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_labelId = 0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_faultLabel = 
-  "fault";
-const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_faultId = 100;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_timestepFilename = 
-  "hex8_sub.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_vertexFilename = 
-  "hex8_sub_vertex.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellFilename = 
-  "hex8_sub_cell.vtk";
-
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_time = 1.0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshHex8::_timeFormat = 
-  "%3.1f";
-
-const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_numVertexFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_numVertices = 20;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshHex8::_vertexFields[] = {
-  { "displacements", topology::FieldBase::VECTOR, 3 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::OTHER, 2 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_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,
-  1.2, 2.3, 3.4,
-  4.5, 5.6, 6.7,
-  7.8, 8.9, 9.0,
-  10.2, 11.3, 12.4,
-  1.3, 2.4, 3.5,
-  4.6, 5.7, 6.8,
-  7.9, 8.0, 9.1,
-  10.2, 11.3, 12.4,
-  13.5, 14.6, 15.7,
-  16.8, 17.9, 18.1,
-  19.2, 20.3, 21.4,
-  22.5, 23.6, 24.7,
-  25.5, 26.6, 27.7,
-  28.8, 29.9, 30.0,
-  31.1, 32.2, 33.3,
-  34.4, 35.5, 36.6
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_vertexField1[] = {
-  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8,
-  10.0, 12.1, 11.1, 13.1, 14.1, 15.1, 16.1, 17.1,
-  18.1, 19.1, 20.1, 21.1
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_vertexField2[] = {
-  1.2, 2.3,
-  3.4, 4.5,
-  5.6, 6.7,
-  7.8, 8.9,
-  1.3, 2.4,
-  3.5, 4.6,
-  5.7, 6.8,
-  7.9, 8.0,
-  1.3, 2.4,
-  3.5, 4.6,
-  5.7, 6.8,
-  8.0, 1.4,
-  2.5, 3.6,
-  4.8, 1.5,
-  2.6, 3.7,
-  4.8, 5.9,
-  1.1, 1.2,
-  2.1, 2.2,
-  3.1, 3.2,
-  4.1, 4.2,
-};
-
-const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_numCellFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_numCells = 1;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellFields[] = {
-  { "traction", topology::FieldBase::VECTOR, 3 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::TENSOR, 6 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellField0[] = {
-  1.1, 2.2, 3.3,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellField1[] = {
-  2.1,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellField2[] = {
-  1.2, 2.3, 3.4, 4.5, 5.6, 6.7,
-};
-
-pylith::meshio::DataWriterVTKDataSubMeshHex8::DataWriterVTKDataSubMeshHex8(void)
-{ // constructor
-  meshFilename = const_cast<char*>(_meshFilename);
-  cellsLabel = const_cast<char*>(_cellsLabel);
-  labelId = _labelId;
-  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;
-  numCells = _numCells;
-  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::DataWriterVTKDataSubMeshHex8::~DataWriterVTKDataSubMeshHex8(void)
-{}
-
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,76 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#if !defined(pylith_meshio_datawritervtkdatasubmeshhex8_hh)
-#define pylith_meshio_datawritervtkdatasubmeshhex8_hh
-
-#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
-
-namespace pylith {
-  namespace meshio {
-     class DataWriterVTKDataSubMeshHex8;
-  } // meshio
-} // pylith
-
-class pylith::meshio::DataWriterVTKDataSubMeshHex8 : public DataWriterVTKData
-{ // DataWriterVTKDataSubMeshHex8
-
-public: 
-
-  /// Constructor
-  DataWriterVTKDataSubMeshHex8(void);
-
-  /// Destructor
-  ~DataWriterVTKDataSubMeshHex8(void);
-
-private:
-
-  static const char* _meshFilename; ///< Name of mesh file.
-  static const char* _cellsLabel; ///< Label defining subset of cells.
-  static const int _labelId; /// Value for label defining subset of cells.
-  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.
-  //@}
-
-}; // DataWriterVTKDataSubMeshHex8
-
-#endif // pylith_meshio_datawritervtkdatasubmeshhex8_hh
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,120 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#include "DataWriterVTKDataSubMeshLine2.hh"
-
-#include <assert.h> // USES assert()
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_meshFilename = 
-  "data/line2.mesh";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_cellsLabel = 
-  "material-id";
-const int pylith::meshio::DataWriterVTKDataSubMeshLine2::_labelId = 0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_faultLabel = 
-  "fault";
-const int pylith::meshio::DataWriterVTKDataSubMeshLine2::_faultId = 100;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_timestepFilename = 
-  "line2_sub.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_vertexFilename = 
-  "line2_sub_vertex.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_cellFilename = 
-  "line2_sub_cell.vtk";
-
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_time = 1.0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshLine2::_timeFormat = 
-  "%3.1f";
-
-const int pylith::meshio::DataWriterVTKDataSubMeshLine2::_numVertexFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshLine2::_numVertices = 5;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshLine2::_vertexFields[] = {
-  { "displacements", topology::FieldBase::VECTOR, 1 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::OTHER, 2 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_vertexField0[] = {
-  1.1, 2.2, 3.3, 4.4, 5.5
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_vertexField1[] = {
-  2.1, 3.2, 4.3, 5.4, 6.5
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_vertexField2[] = {
-  1.2, 2.3, 
-  3.4, 4.5,
-  5.6, 6.7,
-  7.8, 8.9,
-  9.1, 10.2
-};
-
-const int pylith::meshio::DataWriterVTKDataSubMeshLine2::_numCellFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshLine2::_numCells = 1;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshLine2::_cellFields[] = {
-  { "traction", topology::FieldBase::VECTOR, 1 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::TENSOR, 1 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_cellField0[] = {
-  1.1,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_cellField1[] = {
-  2.1,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshLine2::_cellField2[] = {
-  1.2,
-};
-
-pylith::meshio::DataWriterVTKDataSubMeshLine2::DataWriterVTKDataSubMeshLine2(void)
-{ // constructor
-  meshFilename = const_cast<char*>(_meshFilename);
-  cellsLabel = const_cast<char*>(_cellsLabel);
-  labelId = _labelId;
-  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;
-  numCells = _numCells;
-  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::DataWriterVTKDataSubMeshLine2::~DataWriterVTKDataSubMeshLine2(void)
-{}
-
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshLine2.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,76 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#if !defined(pylith_meshio_datawritervtkdatasubmeshline2_hh)
-#define pylith_meshio_datawritervtkdatasubmeshline2_hh
-
-#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
-
-namespace pylith {
-  namespace meshio {
-     class DataWriterVTKDataSubMeshLine2;
-  } // meshio
-} // pylith
-
-class pylith::meshio::DataWriterVTKDataSubMeshLine2 : public DataWriterVTKData
-{ // DataWriterVTKDataSubMeshLine2
-
-public: 
-
-  /// Constructor
-  DataWriterVTKDataSubMeshLine2(void);
-
-  /// Destructor
-  ~DataWriterVTKDataSubMeshLine2(void);
-
-private:
-
-  static const char* _meshFilename; ///< Name of mesh file.
-  static const char* _cellsLabel; ///< Label defining subset of cells.
-  static const int _labelId; /// Value for label defining subset of cells.
-  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.
-  //@}
-
-}; // DataWriterVTKDataSubMeshLine2
-
-#endif // pylith_meshio_datawritervtkdatasubmeshline2_hh
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,120 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#include "DataWriterVTKDataSubMeshQuad4.hh"
-
-#include <assert.h> // USES assert()
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshQuad4::_meshFilename = 
-  "data/quad4.mesh";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshQuad4::_cellsLabel = 
-  "material-id";
-const int pylith::meshio::DataWriterVTKDataSubMeshQuad4::_labelId = 2;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshQuad4::_timestepFilename = 
-  "quad4_sub.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshQuad4::_vertexFilename = 
-  "quad4_sub_vertex.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshQuad4::_cellFilename = 
-  "quad4_sub_cell.vtk";
-
-const double pylith::meshio::DataWriterVTKDataSubMeshQuad4::_time = 1.0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshQuad4::_timeFormat = 
-  "%3.1f";
-
-const int pylith::meshio::DataWriterVTKDataSubMeshQuad4::_numVertexFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshQuad4::_numVertices = 6;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshQuad4::_vertexFields[] = {
-  { "displacements", topology::FieldBase::VECTOR, 2 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::OTHER, 2 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshQuad4::_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::DataWriterVTKDataSubMeshQuad4::_vertexField1[] = {
-  2.1, 3.2, 4.3, 5.4, 6.5, 7.6
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshQuad4::_vertexField2[] = {
-  1.2, 2.3,
-  3.4, 4.5,
-  5.6, 6.7,
-  7.8, 8.9,
-  9.8, 7.6,
-  6.5, 5.4
-};
-
-const int pylith::meshio::DataWriterVTKDataSubMeshQuad4::_numCellFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshQuad4::_numCells = 1;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshQuad4::_cellFields[] = {
-  { "traction", topology::FieldBase::VECTOR, 2 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::TENSOR, 3 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshQuad4::_cellField0[] = {
-  1.1, 2.2,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshQuad4::_cellField1[] = {
-  2.1,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshQuad4::_cellField2[] = {
-  1.2, 2.3, 3.4,
-};
-
-pylith::meshio::DataWriterVTKDataSubMeshQuad4::DataWriterVTKDataSubMeshQuad4(void)
-{ // constructor
-  meshFilename = const_cast<char*>(_meshFilename);
-  cellsLabel = const_cast<char*>(_cellsLabel);
-  labelId = _labelId;
-
-  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);
-  numCells = _numCells;
-  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::DataWriterVTKDataSubMeshQuad4::~DataWriterVTKDataSubMeshQuad4(void)
-{}
-
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,74 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#if !defined(pylith_meshio_datawritervtkdatasubmeshquad4_hh)
-#define pylith_meshio_datawritervtkdatasubmeshquad4_hh
-
-#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
-
-namespace pylith {
-  namespace meshio {
-     class DataWriterVTKDataSubMeshQuad4;
-  } // meshio
-} // pylith
-
-class pylith::meshio::DataWriterVTKDataSubMeshQuad4 : public DataWriterVTKData
-{ // DataWriterVTKDataSubMeshQuad4
-
-public: 
-
-  /// Constructor
-  DataWriterVTKDataSubMeshQuad4(void);
-
-  /// Destructor
-  ~DataWriterVTKDataSubMeshQuad4(void);
-
-private:
-
-  static const char* _meshFilename; ///< Name of mesh file.
-  static const char* _cellsLabel; ///< Label defining subset of cells.
-  static const int _labelId; /// Value for label defining subset of cells.
-
-  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.
-  //@}
-
-}; // DataWriterVTKDataSubMeshQuad4
-
-#endif // pylith_meshio_datawritervtkdatasubmeshquad4_hh
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,138 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#include "DataWriterVTKDataSubMeshTet4.hh"
-
-#include <assert.h> // USES assert()
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_meshFilename = 
-  "data/tet4.mesh";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellsLabel = 
-  "material-id";
-const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_labelId = 1;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_faultLabel = 
-  "fault";
-const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_faultId = 100;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_timestepFilename = 
-  "tet4_sub.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexFilename = 
-  "tet4_sub_vertex.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellFilename = 
-  "tet4_sub_cell.vtk";
-
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_time = 1.0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTet4::_timeFormat = 
-  "%3.1f";
-
-const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_numVertexFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_numVertices = 11;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexFields[] = {
-  { "displacements", topology::FieldBase::VECTOR, 3 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::OTHER, 2 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexField0[] = {
-  1.1, 2.2, 3.3,
-  4.4, 5.5, 6.6,
-  7.7, 8.8, 9.9,
-  10.0, 11.1, 12.2,
-  13.3, 14.4, 15.5,
-  16.6, 17.7, 18.8,
-  19.9, 20.0, 21.1,
-  22.2, 23.3, 24.4,
-  25.5, 26.6, 27.7,
-  28.8, 29.9, 30.0,
-  31.1, 32.2, 33.3,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexField1[] = {
-  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8, 10.9, 11.0, 12.1
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexField2[] = {
-  1.2, 2.3,
-  3.4, 4.5,
-  5.6, 6.7,
-  7.8, 8.9,
-  9.0, 10.1,
-  11.2, 12.3,
-  13.4, 14.5,
-  15.6, 16.7,
-  17.8, 18.9,
-  19.0, 20.1,
-  21.2, 22.3
-};
-
-const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_numCellFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_numCells = 2;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellFields[] = {
-  { "traction", topology::FieldBase::VECTOR, 3 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::TENSOR, 6 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellField0[] = {
-  1.1, 2.2, 3.3,
-  4.4, 5.5, 6.6,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellField1[] = {
-  2.1, 3.2
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellField2[] = {
-  1.2, 2.3, 3.4, 4.5, 5.6, 6.7,
-  7.8, 8.9, 9.0, 10.1, 11.2, 12.3,
-};
-
-pylith::meshio::DataWriterVTKDataSubMeshTet4::DataWriterVTKDataSubMeshTet4(void)
-{ // constructor
-  meshFilename = const_cast<char*>(_meshFilename);
-  cellsLabel = const_cast<char*>(_cellsLabel);
-  labelId = _labelId;
-  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);
-  numCells = _numCells;
-  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::DataWriterVTKDataSubMeshTet4::~DataWriterVTKDataSubMeshTet4(void)
-{}
-
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,76 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#if !defined(pylith_meshio_datawritervtkdatasubmeshtet4_hh)
-#define pylith_meshio_datawritervtkdatasubmeshtet4_hh
-
-#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
-
-namespace pylith {
-  namespace meshio {
-     class DataWriterVTKDataSubMeshTet4;
-  } // meshio
-} // pylith
-
-class pylith::meshio::DataWriterVTKDataSubMeshTet4 : public DataWriterVTKData
-{ // DataWriterVTKDataSubMeshTet4
-
-public: 
-
-  /// Constructor
-  DataWriterVTKDataSubMeshTet4(void);
-
-  /// Destructor
-  ~DataWriterVTKDataSubMeshTet4(void);
-
-private:
-
-  static const char* _meshFilename; ///< Name of mesh file.
-  static const char* _cellsLabel; ///< Label defining subset of cells.
-  static const int _labelId; /// Value for label defining subset of cells.
-  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.
-  //@}
-
-}; // DataWriterVTKDataSubMeshTet4
-
-#endif // pylith_meshio_datawritervtkdatasubmeshtet4_hh
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.cc	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.cc	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,130 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#include "DataWriterVTKDataSubMeshTri3.hh"
-
-#include <assert.h> // USES assert()
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_meshFilename = 
-  "data/tri3.mesh";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_cellsLabel = 
-  "material-id";
-const int pylith::meshio::DataWriterVTKDataSubMeshTri3::_labelId = 0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_faultLabel = 
-  "fault";
-const int pylith::meshio::DataWriterVTKDataSubMeshTri3::_faultId = 100;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_timestepFilename = 
-  "tri3_sub.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_vertexFilename = 
-  "tri3_sub_vertex.vtk";
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_cellFilename = 
-  "tri3_sub_cell.vtk";
-
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_time = 1.0;
-
-const char* pylith::meshio::DataWriterVTKDataSubMeshTri3::_timeFormat = 
-  "%3.1f";
-
-const int pylith::meshio::DataWriterVTKDataSubMeshTri3::_numVertexFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshTri3::_numVertices = 8;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshTri3::_vertexFields[] = {
-  { "displacements", topology::FieldBase::VECTOR, 2 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::OTHER, 2 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_vertexField0[] = {
-  1.1, 2.2,
-  3.3, 4.4,
-  5.5, 6.6,
-  7.7, 8.8,
-  9.9, 10.0,
-  11.1, 12.2,
-  13.3, 14.4,
-  15.5, 16.6,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_vertexField1[] = {
-  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_vertexField2[] = {
-  1.2, 2.3,
-  3.4, 4.5,
-  5.6, 6.7,
-  7.8, 8.9,
-  9.0, 10.1,
-  11.2, 12.3,
-  13.4, 14.5,
-  15.6, 16.7
-};
-
-const int pylith::meshio::DataWriterVTKDataSubMeshTri3::_numCellFields = 3;
-const int pylith::meshio::DataWriterVTKDataSubMeshTri3::_numCells = 1;
-
-const pylith::meshio::DataWriterVTKData::FieldStruct
-pylith::meshio::DataWriterVTKDataSubMeshTri3::_cellFields[] = {
-  { "traction", topology::FieldBase::VECTOR, 2 },
-  { "pressure", topology::FieldBase::SCALAR, 1 },
-  { "other", topology::FieldBase::TENSOR, 3 },
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_cellField0[] = {
-  1.1, 2.2,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_cellField1[] = {
-  2.1,
-};
-const double pylith::meshio::DataWriterVTKDataSubMeshTri3::_cellField2[] = {
-  1.2, 2.3, 3.4,
-};
-
-pylith::meshio::DataWriterVTKDataSubMeshTri3::DataWriterVTKDataSubMeshTri3(void)
-{ // constructor
-  meshFilename = const_cast<char*>(_meshFilename);
-  cellsLabel = const_cast<char*>(_cellsLabel);
-  labelId = _labelId;
-  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;
-  numCells = _numCells;
-  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::DataWriterVTKDataSubMeshTri3::~DataWriterVTKDataSubMeshTri3(void)
-{}
-
-
-// End of file

Deleted: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.hh
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.hh	2009-05-01 23:59:34 UTC (rev 14841)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTri3.hh	2009-05-02 00:48:02 UTC (rev 14842)
@@ -1,76 +0,0 @@
-// -*- C++ -*-
-//
-// ======================================================================
-//
-//                           Brad T. Aagaard
-//                        U.S. Geological Survey
-//
-// {LicenseText}
-//
-// ======================================================================
-//
-
-#if !defined(pylith_meshio_datawritervtkdatasubmeshtri3_hh)
-#define pylith_meshio_datawritervtkdatasubmeshtri3_hh
-
-#include "DataWriterVTKData.hh" // ISA DataWriterVTKData
-
-namespace pylith {
-  namespace meshio {
-     class DataWriterVTKDataSubMeshTri3;
-  } // meshio
-} // pylith
-
-class pylith::meshio::DataWriterVTKDataSubMeshTri3 : public DataWriterVTKData
-{ // DataWriterVTKDataSubMeshTri3
-
-public: 
-
-  /// Constructor
-  DataWriterVTKDataSubMeshTri3(void);
-
-  /// Destructor
-  ~DataWriterVTKDataSubMeshTri3(void);
-
-private:
-
-  static const char* _meshFilename; ///< Name of mesh file.
-  static const char* _cellsLabel; ///< Label defining subset of cells.
-  static const int _labelId; /// Value for label defining subset of cells.
-  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.
-  //@}
-
-}; // DataWriterVTKDataSubMeshTri3
-
-#endif // pylith_meshio_datawritervtkdatasubmeshtri3_hh
-
-// End of file



More information about the CIG-COMMITS mailing list