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

brad at geodynamics.org brad at geodynamics.org
Thu Feb 28 17:19:45 PST 2008


Author: brad
Date: 2008-02-28 17:19:45 -0800 (Thu, 28 Feb 2008)
New Revision: 11294

Added:
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_vertex_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_vertex_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_cell_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_t10.vtk
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_vertex_t10.vtk
Modified:
   short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8.mesh
   short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh
Log:
Finished C++ unit tests for output of sub mesh (material).

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am	2008-02-29 01:19:11 UTC (rev 11293)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/Makefile.am	2008-02-29 01:19:45 UTC (rev 11294)
@@ -30,6 +30,9 @@
 	TestDataWriterVTKMeshHex8.cc \
 	TestDataWriterVTKSubMeshLine2.cc \
 	TestDataWriterVTKSubMeshTri3.cc \
+	TestDataWriterVTKSubMeshQuad4.cc \
+	TestDataWriterVTKSubMeshTet4.cc \
+	TestDataWriterVTKSubMeshHex8.cc \
 	TestMeshIO.cc \
 	TestMeshIOAscii.cc \
 	TestMeshIOLagrit.cc \
@@ -45,6 +48,9 @@
 	TestDataWriterVTKMeshHex8.hh \
 	TestDataWriterVTKSubMeshLine2.hh \
 	TestDataWriterVTKSubMeshTri3.hh \
+	TestDataWriterVTKSubMeshQuad4.hh \
+	TestDataWriterVTKSubMeshTet4.hh \
+	TestDataWriterVTKSubMeshHex8.hh \
 	TestMeshIO.hh \
 	TestMeshIOAscii.hh \
 	TestMeshIOLagrit.hh
@@ -60,6 +66,9 @@
 	data/DataWriterVTKDataMeshHex8.cc \
 	data/DataWriterVTKDataSubMeshLine2.cc \
 	data/DataWriterVTKDataSubMeshTri3.cc \
+	data/DataWriterVTKDataSubMeshQuad4.cc \
+	data/DataWriterVTKDataSubMeshTet4.cc \
+	data/DataWriterVTKDataSubMeshHex8.cc \
 	data/MeshData.cc \
 	data/MeshData1D.cc \
 	data/MeshData1Din3D.cc \
@@ -84,6 +93,9 @@
 	data/DataWriterVTKDataMeshHex8.hh \
 	data/DataWriterVTKDataSubMeshLine2.hh \
 	data/DataWriterVTKDataSubMeshTri3.hh \
+	data/DataWriterVTKDataSubMeshQuad4.hh \
+	data/DataWriterVTKDataSubMeshTet4.hh \
+	data/DataWriterVTKDataSubMeshHex8.hh \
 	data/MeshData.hh \
 	data/MeshData1D.hh \
 	data/MeshData1Din2D.hh \
@@ -139,7 +151,22 @@
 	tet4_cell_t10.vtk \
 	hex8_t10.vtk \
 	hex8_vertex_t10.vtk \
-	hex8_cell_t10.vtk
+	hex8_cell_t10.vtk \
+	line2_sub_t10.vtk \
+	line2_sub_vertex_t10.vtk \
+	line2_sub_cell_t10.vtk \
+	tri3_sub_t10.vtk \
+	tri3_sub_vertex_t10.vtk \
+	tri3_sub_cell_t10.vtk \
+	quad4_sub_t10.vtk \
+	quad4_sub_vertex_t10.vtk \
+	quad4_sub_cell_t10.vtk \
+	tet4_sub_t10.vtk \
+	tet4_sub_vertex_t10.vtk \
+	tet4_sub_cell_t10.vtk \
+	hex8_sub_t10.vtk \
+	hex8_sub_vertex_t10.vtk \
+	hex8_sub_cell_t10.vtk
 
 CLEANFILES = $(noinst_tmp)
 

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshHex8.cc	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKSubMeshHex8.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataSubMeshHex8.hh" // USES DataWriterVTKDataMeshHex8
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKSubMeshHex8 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKSubMeshHex8::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataSubMeshHex8;
+  _dataMesh = new DataWriterVTKDataSubMeshHex8;
+  _initialize();
+} // setUp
+
+
+// End of file 

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

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshQuad4.cc	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKSubMeshQuad4.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataSubMeshQuad4.hh" // USES DataWriterVTKDataMeshQuad4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKSubMeshQuad4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKSubMeshQuad4::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataSubMeshQuad4;
+  _dataMesh = new DataWriterVTKDataSubMeshQuad4;
+  _initialize();
+} // setUp
+
+
+// End of file 

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

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/TestDataWriterVTKSubMeshTet4.cc	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestDataWriterVTKSubMeshTet4.hh" // Implementation of class methods
+
+#include "data/DataWriterVTKDataSubMeshTet4.hh" // USES DataWriterVTKDataMeshTet4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::meshio::TestDataWriterVTKSubMeshTet4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::meshio::TestDataWriterVTKSubMeshTet4::setUp(void)
+{ // setUp
+  TestDataWriterVTKMesh::setUp();
+  _data = new DataWriterVTKDataSubMeshTet4;
+  _dataMesh = new DataWriterVTKDataSubMeshTet4;
+  _initialize();
+} // setUp
+
+
+// End of file 

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

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.cc	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,147 @@
+// -*- 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 = 16;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataSubMeshHex8::_vertexFields[] = {
+  { "displacements", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 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,
+};
+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
+};
+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,
+};
+
+const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataSubMeshHex8::_numCells = 1;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataSubMeshHex8::_cellFields[] = {
+  { "traction", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 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;
+  numVertices = _numVertices;
+  assert(3 == numCellFields);
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataSubMeshHex8::~DataWriterVTKDataSubMeshHex8(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshHex8.hh	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,79 @@
+// -*- 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
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataSubMeshHex8;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataSubMeshHex8 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // 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

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.cc	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,120 @@
+// -*- 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", VECTOR_FIELD, 2 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 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", VECTOR_FIELD, 2 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 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);
+  numVertices = _numVertices;
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataSubMeshQuad4::~DataWriterVTKDataSubMeshQuad4(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshQuad4.hh	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,77 @@
+// -*- 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
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataSubMeshQuad4;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataSubMeshQuad4 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // 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

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.cc	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,132 @@
+// -*- 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 = 8;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexFields[] = {
+  { "displacements", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", OTHER_FIELD, 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,
+};
+const double pylith::meshio::DataWriterVTKDataSubMeshTet4::_vertexField1[] = {
+  2.1, 3.2, 4.3, 5.4, 6.5, 7.6, 8.7, 9.8
+};
+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,
+};
+
+const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_numCellFields = 3;
+const int pylith::meshio::DataWriterVTKDataSubMeshTet4::_numCells = 2;
+
+const pylith::meshio::DataWriterVTKData::FieldStruct
+pylith::meshio::DataWriterVTKDataSubMeshTet4::_cellFields[] = {
+  { "traction", VECTOR_FIELD, 3 },
+  { "pressure", SCALAR_FIELD, 1 },
+  { "other", TENSOR_FIELD, 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);
+  numVertices = _numVertices;
+  cellFieldsInfo = const_cast<DataWriterVTKData::FieldStruct*>(_cellFields);
+  cellFields[0] = const_cast<double*>(_cellField0);
+  cellFields[1] = const_cast<double*>(_cellField1);
+  cellFields[2] = const_cast<double*>(_cellField2);
+} // constructor
+
+pylith::meshio::DataWriterVTKDataSubMeshTet4::~DataWriterVTKDataSubMeshTet4(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/DataWriterVTKDataSubMeshTet4.hh	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,79 @@
+// -*- 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
+#include "DataWriterVTKDataMesh.hh" // ISA DataWriterVTKDataMesh
+
+namespace pylith {
+  namespace meshio {
+     class DataWriterVTKDataSubMeshTet4;
+  } // meshio
+} // pylith
+
+class pylith::meshio::DataWriterVTKDataSubMeshTet4 :
+  public DataWriterVTKData,
+  public DataWriterVTKDataMesh
+{ // 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

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am	2008-02-29 01:19:11 UTC (rev 11293)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/Makefile.am	2008-02-29 01:19:45 UTC (rev 11294)
@@ -46,7 +46,16 @@
 	line2_sub_cell_t10.vtk \
 	tri3_sub_t10.vtk \
 	tri3_sub_vertex_t10.vtk \
-	tri3_sub_cell_t10.vtk
+	tri3_sub_cell_t10.vtk \
+	quad4_sub_t10.vtk \
+	quad4_sub_vertex_t10.vtk \
+	quad4_sub_cell_t10.vtk \
+	tet4_sub_t10.vtk \
+	tet4_sub_vertex_t10.vtk \
+	tet4_sub_cell_t10.vtk \
+	hex8_sub_t10.vtk \
+	hex8_sub_vertex_t10.vtk \
+	hex8_sub_cell_t10.vtk
 
 noinst_TMP =
 

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8.mesh	2008-02-29 01:19:11 UTC (rev 11293)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8.mesh	2008-02-29 01:19:45 UTC (rev 11294)
@@ -58,8 +58,8 @@
              1       2  4  5  3  8 10 11  9
     }
     material-ids = {
-             0   0
-             1   1
+             0   1
+             1   0
     }
   }
   group = {

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_cell_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,34 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 16 double
+-1 -1 -1
+-1 1 -1
+0 -1 -1
+0 1 -1
+1 -1 -1
+1 1 -1
+-1 -1 1
+-1 1 1
+0 -1 1
+0 1 1
+1 -1 1
+1 1 1
+0 -1 -1
+0 1 -1
+0 -1 1
+0 1 1
+CELLS 1 9
+8  2 4 5 3 8 10 11 9
+CELL_TYPES 1
+12
+CELL_DATA 1
+VECTORS traction double
+1.1 2.2 3.3
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+SCALARS other double 6
+LOOKUP_TABLE default
+1.2 2.3 3.4 4.5 5.6 6.7

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,25 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 16 double
+-1 -1 -1
+-1 1 -1
+0 -1 -1
+0 1 -1
+1 -1 -1
+1 1 -1
+-1 -1 1
+-1 1 1
+0 -1 1
+0 1 1
+1 -1 1
+1 1 1
+0 -1 -1
+0 1 -1
+0 -1 1
+0 1 1
+CELLS 1 9
+8  2 4 5 3 8 10 11 9
+CELL_TYPES 1
+12

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_vertex_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_vertex_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/hex8_sub_vertex_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,79 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 16 double
+-1 -1 -1
+-1 1 -1
+0 -1 -1
+0 1 -1
+1 -1 -1
+1 1 -1
+-1 -1 1
+-1 1 1
+0 -1 1
+0 1 1
+1 -1 1
+1 1 1
+0 -1 -1
+0 1 -1
+0 -1 1
+0 1 1
+CELLS 1 9
+8  2 4 5 3 8 10 11 9
+CELL_TYPES 1
+12
+POINT_DATA 16
+VECTORS displacements double
+1.1 2.2 3.3
+4.4 5.5 6.6
+7.7 8.8 9.9
+10.1 11.2 12.3
+1.2 2.3 3.4
+4.5 5.6 6.7
+7.8 8.9 9
+10.2 11.3 12.4
+1.3 2.4 3.5
+4.6 5.7 6.8
+7.9 8 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
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+4.3
+5.4
+6.5
+7.6
+8.7
+9.8
+10
+12.1
+11.1
+13.1
+14.1
+15.1
+16.1
+17.1
+SCALARS other double 2
+LOOKUP_TABLE default
+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
+1.3 2.4
+3.5 4.6
+5.7 6.8
+8 1.4
+2.5 3.6
+4.8 1.5
+2.6 3.7
+4.8 5.9

Modified: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh	2008-02-29 01:19:11 UTC (rev 11293)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4.mesh	2008-02-29 01:19:45 UTC (rev 11294)
@@ -6,14 +6,6 @@
 //  |       |       |
 //  0 ----- 2 ----- 4
 //
-// Sieve mesh
-//
-//  3 ----- 5 ----- 7
-//  |       |       |
-//  |   0   |   1   |
-//  |       |       |
-//  2 ----- 4 ----- 6
-//
 mesh = {
   dimension = 2
   use-index-zero = true

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_cell_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,23 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 6 double
+-1 -1 0.0
+-1 1 0.0
+0 -1 0.0
+0 1 0.0
+1 -1 0.0
+1 1 0.0
+CELLS 1 5
+4  2 4 5 3
+CELL_TYPES 1
+9
+CELL_DATA 1
+VECTORS traction double
+1.1 2.2 0.0
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+VECTORS other double
+1.2 2.3 3.4

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/quad4_sub_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,15 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 6 double
+-1 -1 0.0
+-1 1 0.0
+0 -1 0.0
+0 1 0.0
+1 -1 0.0
+1 1 0.0
+CELLS 1 5
+4  2 4 5 3
+CELL_TYPES 1
+9

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

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_cell_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_cell_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_cell_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,31 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 8 double
+-1 0 0
+0 -1 0
+0 0 1
+0 1 0
+1 0 0
+0 -1 0
+0 0 1
+0 1 0
+CELLS 2 10
+4  1 2 3 0
+4  5 7 6 4
+CELL_TYPES 2
+10
+10
+CELL_DATA 2
+VECTORS traction double
+1.1 2.2 3.3
+4.4 5.5 6.6
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+SCALARS other double 6
+LOOKUP_TABLE default
+1.2 2.3 3.4 4.5 5.6 6.7
+7.8 8.9 9 10.1 11.2 12.3

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,19 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 8 double
+-1 0 0
+0 -1 0
+0 0 1
+0 1 0
+1 0 0
+0 -1 0
+0 0 1
+0 1 0
+CELLS 2 10
+4  1 2 3 0
+4  5 7 6 4
+CELL_TYPES 2
+10
+10

Added: short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_vertex_t10.vtk
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_vertex_t10.vtk	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/meshio/data/tet4_sub_vertex_t10.vtk	2008-02-29 01:19:45 UTC (rev 11294)
@@ -0,0 +1,49 @@
+# vtk DataFile Version 2.0
+Simplicial Mesh Example
+ASCII
+DATASET UNSTRUCTURED_GRID
+POINTS 8 double
+-1 0 0
+0 -1 0
+0 0 1
+0 1 0
+1 0 0
+0 -1 0
+0 0 1
+0 1 0
+CELLS 2 10
+4  1 2 3 0
+4  5 7 6 4
+CELL_TYPES 2
+10
+10
+POINT_DATA 8
+VECTORS displacements double
+1.1 2.2 3.3
+4.4 5.5 6.6
+7.7 8.8 9.9
+10 11.1 12.2
+13.3 14.4 15.5
+16.6 17.7 18.8
+19.9 20 21.1
+22.2 23.3 24.4
+SCALARS pressure double 1
+LOOKUP_TABLE default
+2.1
+3.2
+4.3
+5.4
+6.5
+7.6
+8.7
+9.8
+SCALARS other double 2
+LOOKUP_TABLE default
+1.2 2.3
+3.4 4.5
+5.6 6.7
+7.8 8.9
+9 10.1
+11.2 12.3
+13.4 14.5
+15.6 16.7



More information about the cig-commits mailing list