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

brad at geodynamics.org brad at geodynamics.org
Sun Jun 7 09:58:08 PDT 2009


Author: brad
Date: 2009-06-07 09:58:06 -0700 (Sun, 07 Jun 2009)
New Revision: 15136

Added:
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.hh
   short/3D/PyLith/trunk/unittests/libtests/bc/data/hex8_force.spatialdb
   short/3D/PyLith/trunk/unittests/libtests/bc/data/line2_force.spatialdb
   short/3D/PyLith/trunk/unittests/libtests/bc/data/quad4_force.spatialdb
   short/3D/PyLith/trunk/unittests/libtests/bc/data/tet4_force.spatialdb
Modified:
   short/3D/PyLith/trunk/unittests/libtests/bc/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForce.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataHex8.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataLine2.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataQuad4.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTet4.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTri3.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/Makefile.am
   short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTri3.cc
   short/3D/PyLith/trunk/unittests/libtests/bc/data/tri3_force.spatialdb
Log:
More unit tests for point force BC.

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/Makefile.am	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/Makefile.am	2009-06-07 16:58:06 UTC (rev 15136)
@@ -57,7 +57,11 @@
 	TestNeumannTet4.cc \
 	TestNeumannHex8.cc \
 	TestPointForce.cc \
+	TestPointForceLine2.cc \
 	TestPointForceTri3.cc \
+	TestPointForceQuad4.cc \
+	TestPointForceTet4.cc \
+	TestPointForceHex8.cc \
 	test_bc.cc
 
 
@@ -98,7 +102,11 @@
 	TestNeumannTet4.hh \
 	TestNeumannHex8.hh \
 	TestPointForce.hh \
-	TestPointForceTri3.hh
+	TestPointForceLine2.hh \
+	TestPointForceTri3.hh \
+	TestPointForceQuad4.hh \
+	TestPointForceTet4.hh \
+	TestPointForceHex8.hh
 
 # Source files associated with testing data
 testbc_SOURCES += \
@@ -130,7 +138,11 @@
 	data/NeumannDataTet4.cc \
 	data/NeumannDataHex8.cc \
 	data/PointForceData.cc \
-	data/PointForceDataTri3.cc
+	data/PointForceDataLine2.cc \
+	data/PointForceDataTri3.cc \
+	data/PointForceDataQuad4.cc \
+	data/PointForceDataTet4.cc \
+	data/PointForceDataHex8.cc
 
 noinst_HEADERS += \
 	data/BoundaryMeshData.hh \
@@ -161,7 +173,11 @@
 	data/NeumannDataTet4.hh \
 	data/NeumannDataHex8.hh \
 	data/PointForceData.hh \
-	data/PointForceDataTri3.hh
+	data/PointForceDataLine2.hh \
+	data/PointForceDataTri3.hh \
+	data/PointForceDataQuad4.hh \
+	data/PointForceDataTet4.hh \
+	data/PointForceDataHex8.hh
 
 
 AM_CPPFLAGS = \

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForce.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForce.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForce.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -166,7 +166,7 @@
   const int size = residualSection->sizeWithBC();
   CPPUNIT_ASSERT_EQUAL(sizeE, size);
 
-  residual.view("RESIDUAL");
+  //residual.view("RESIDUAL");
 
   const double tolerance = 1.0e-06;
   for (int i=0; i < size; ++i)

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestPointForceHex8.hh" // Implementation of class methods
+
+#include "data/PointForceDataHex8.hh" // USES DirichletDataHex8
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::bc::TestPointForceHex8 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::bc::TestPointForceHex8::setUp(void)
+{ // setUp
+  _data = new PointForceDataHex8();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceHex8.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/bc/TestPointForceHex8.hh
+ *
+ * @brief C++ TestPointForce object.
+ *
+ * C++ unit testing for PointForce for mesh with 1-D line cells.
+ */
+
+#if !defined(pylith_bc_testpointforcebchex8_hh)
+#define pylith_bc_testpointforcebchex8_hh
+
+#include "TestPointForce.hh" // ISA TestPointForce
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace bc {
+    class TestPointForceHex8;
+  } // bc
+} // pylith
+
+/// C++ unit testing for PointForce for mesh with 2-D tri cells.
+class pylith::bc::TestPointForceHex8 : public TestPointForce
+{ // class TestPointForce
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUB_SUITE( TestPointForceHex8, TestPointForce );
+
+  CPPUNIT_TEST( testInitialize );
+  CPPUNIT_TEST( testIntegrateResidualAssembled );
+  CPPUNIT_TEST( testVerifyConfiguration );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestPointForceHex8
+
+#endif // pylith_bc_pointforcebchex8_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestPointForceLine2.hh" // Implementation of class methods
+
+#include "data/PointForceDataLine2.hh" // USES DirichletDataLine2
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::bc::TestPointForceLine2 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::bc::TestPointForceLine2::setUp(void)
+{ // setUp
+  _data = new PointForceDataLine2();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceLine2.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/bc/TestPointForceLine2.hh
+ *
+ * @brief C++ TestPointForce object.
+ *
+ * C++ unit testing for PointForce for mesh with 1-D line cells.
+ */
+
+#if !defined(pylith_bc_testpointforcebcline2_hh)
+#define pylith_bc_testpointforcebcline2_hh
+
+#include "TestPointForce.hh" // ISA TestPointForce
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace bc {
+    class TestPointForceLine2;
+  } // bc
+} // pylith
+
+/// C++ unit testing for PointForce for mesh with 2-D tri cells.
+class pylith::bc::TestPointForceLine2 : public TestPointForce
+{ // class TestPointForce
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUB_SUITE( TestPointForceLine2, TestPointForce );
+
+  CPPUNIT_TEST( testInitialize );
+  CPPUNIT_TEST( testIntegrateResidualAssembled );
+  CPPUNIT_TEST( testVerifyConfiguration );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestPointForceLine2
+
+#endif // pylith_bc_pointforcebcline2_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestPointForceQuad4.hh" // Implementation of class methods
+
+#include "data/PointForceDataQuad4.hh" // USES DirichletDataQuad4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::bc::TestPointForceQuad4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::bc::TestPointForceQuad4::setUp(void)
+{ // setUp
+  _data = new PointForceDataQuad4();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceQuad4.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/bc/TestPointForceQuad4.hh
+ *
+ * @brief C++ TestPointForce object.
+ *
+ * C++ unit testing for PointForce for mesh with 1-D line cells.
+ */
+
+#if !defined(pylith_bc_testpointforcebcquad4_hh)
+#define pylith_bc_testpointforcebcquad4_hh
+
+#include "TestPointForce.hh" // ISA TestPointForce
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace bc {
+    class TestPointForceQuad4;
+  } // bc
+} // pylith
+
+/// C++ unit testing for PointForce for mesh with 2-D tri cells.
+class pylith::bc::TestPointForceQuad4 : public TestPointForce
+{ // class TestPointForce
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUB_SUITE( TestPointForceQuad4, TestPointForce );
+
+  CPPUNIT_TEST( testInitialize );
+  CPPUNIT_TEST( testIntegrateResidualAssembled );
+  CPPUNIT_TEST( testVerifyConfiguration );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestPointForceQuad4
+
+#endif // pylith_bc_pointforcebcquad4_hh
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+#include <portinfo>
+
+#include "TestPointForceTet4.hh" // Implementation of class methods
+
+#include "data/PointForceDataTet4.hh" // USES DirichletDataTet4
+
+// ----------------------------------------------------------------------
+CPPUNIT_TEST_SUITE_REGISTRATION( pylith::bc::TestPointForceTet4 );
+
+// ----------------------------------------------------------------------
+// Setup testing data.
+void
+pylith::bc::TestPointForceTet4::setUp(void)
+{ // setUp
+  _data = new PointForceDataTet4();
+} // setUp
+
+
+// End of file 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/TestPointForceTet4.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,57 @@
+// -*- C++ -*-
+//
+// ----------------------------------------------------------------------
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ----------------------------------------------------------------------
+//
+
+/**
+ * @file unittests/libtests/bc/TestPointForceTet4.hh
+ *
+ * @brief C++ TestPointForce object.
+ *
+ * C++ unit testing for PointForce for mesh with 1-D line cells.
+ */
+
+#if !defined(pylith_bc_testpointforcebctet4_hh)
+#define pylith_bc_testpointforcebctet4_hh
+
+#include "TestPointForce.hh" // ISA TestPointForce
+
+/// Namespace for pylith package
+namespace pylith {
+  namespace bc {
+    class TestPointForceTet4;
+  } // bc
+} // pylith
+
+/// C++ unit testing for PointForce for mesh with 2-D tri cells.
+class pylith::bc::TestPointForceTet4 : public TestPointForce
+{ // class TestPointForce
+
+  // CPPUNIT TEST SUITE /////////////////////////////////////////////////
+  CPPUNIT_TEST_SUB_SUITE( TestPointForceTet4, TestPointForce );
+
+  CPPUNIT_TEST( testInitialize );
+  CPPUNIT_TEST( testIntegrateResidualAssembled );
+  CPPUNIT_TEST( testVerifyConfiguration );
+
+  CPPUNIT_TEST_SUITE_END();
+
+  // PUBLIC METHODS /////////////////////////////////////////////////////
+public :
+
+  /// Setup testing data.
+  void setUp(void);
+
+}; // class TestPointForceTet4
+
+#endif // pylith_bc_pointforcebctet4_hh
+
+
+// End of file 

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataHex8.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataHex8.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -12,7 +12,7 @@
 
 /* Mesh: meshHex8.txt
  *
- * DirichletPoints BC at vertices 0, 1, 6, 7.
+ * Dirichlet BC at vertices 0, 1, 6, 7.
  *
  * Fixed DOF: { 0, 2 }
  *

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataLine2.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataLine2.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataLine2.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -12,7 +12,7 @@
 
 /* Mesh: meshLine2.txt
  *
- * DirichletPoints BC at vertices 0 and 2.
+ * Dirichlet BC at vertices 0 and 2.
  *
  * Fixed DOF: { 0 }
  *

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataQuad4.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataQuad4.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -12,7 +12,7 @@
 
 /* Mesh: meshQuad4.txt
  *
- * DirichletPoints BC at vertices 0, 2, 4.
+ * Dirichlet BC at vertices 0, 2, 4.
  *
  * Fixed DOF: { 0, 1 }
  *

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTet4.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTet4.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -12,7 +12,7 @@
 
 /* Mesh: meshTet4.txt
  *
- * DirichletPoints BC at vertices 2.
+ * Dirichlet BC at vertices 2.
  *
  * Fixed DOF: { 1, 2 }
  *

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTri3.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTri3.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/DirichletDataTri3.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -12,7 +12,7 @@
 
 /* Mesh: meshTri3.txt
  *
- * DirichletPoints BC at vertices 1 and 3.
+ * Dirichlet BC at vertices 1 and 3.
  *
  * Fixed DOF: { 1 }
  *

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/Makefile.am	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/Makefile.am	2009-06-07 16:58:06 UTC (rev 15136)
@@ -14,6 +14,7 @@
 	line2.mesh \
 	line2_disp.spatialdb \
 	line2_tractions.spatialdb \
+	line2_force.spatialdb \
 	elasticstrain1d.spatialdb \
 	tri3.mesh \
 	tri3_disp.spatialdb \
@@ -26,14 +27,17 @@
 	quad4.mesh \
 	quad4_disp.spatialdb \
 	quad4_tractions.spatialdb \
+	quad4_force.spatialdb \
 	tet4.mesh \
 	tet4_disp.spatialdb \
 	tet4_disp2.spatialdb \
 	tet4_vel2.spatialdb \
 	tet4_tractions.spatialdb \
+	tet4_force.spatialdb \
 	elasticisotropic3d.spatialdb \
 	hex8.mesh \
 	hex8_disp.spatialdb \
+	hex8_force.spatialdb \
 	hex8b.mesh \
 	hex8b_traction.spatialdb
 

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,99 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Mesh: meshHex8.txt
+ *
+ * Point force BC at vertices 0, 1, 6, 7.
+ *
+ * Fixed DOF: { 0, 2 }
+ *
+ * Initial values
+ *   0: -0.2, 0.3
+ *   1:  0.1, 0.7
+ *   6:  0.5, 0.4
+ *   7:  3.2, 6.1
+ * tref = 0.2
+ * Rate of change
+ *   +0.4
+ */
+
+#include "PointForceDataHex8.hh"
+
+const int pylith::bc::PointForceDataHex8::_id = 0;
+
+const char* pylith::bc::PointForceDataHex8::_label = "bc";
+
+const int pylith::bc::PointForceDataHex8::_numDOF = 3;
+const int pylith::bc::PointForceDataHex8::_numForceDOF = 2;
+const int pylith::bc::PointForceDataHex8::_forceDOF[] = { 0, 2 };
+
+const int pylith::bc::PointForceDataHex8::_numForcePts = 4;
+const int pylith::bc::PointForceDataHex8::_forcePoints[] = { 0, 1, 6, 7 };
+
+const double pylith::bc::PointForceDataHex8::_tRef = 0.2;
+const double pylith::bc::PointForceDataHex8::_forceRate = 0.4;
+const double pylith::bc::PointForceDataHex8::_forceInitial[] = {
+  -0.2, 0.3,
+   0.1, 0.7,
+   0.5, 0.4,
+   3.2, 6.1,
+};
+
+const double pylith::bc::PointForceDataHex8::_tResidual = 0.45;
+const double pylith::bc::PointForceDataHex8::_residual[] = {
+ -0.1, 0.0, 0.4, 
+  0.2, 0.0, 0.8, 
+  0.0, 0.0, 0.0, 
+  0.0, 0.0, 0.0, 
+  0.0, 0.0, 0.0, 
+  0.0, 0.0, 0.0, 
+  0.6, 0.0, 0.5, 
+  3.3, 0.0, 6.2, 
+  0.0, 0.0, 0.0, 
+  0.0, 0.0, 0.0, 
+  0.0, 0.0, 0.0, 
+  0.0, 0.0, 0.0, 
+  };
+
+const char* pylith::bc::PointForceDataHex8::_meshFilename = 
+  "data/hex8.mesh";
+const char* pylith::bc::PointForceDataHex8::_dbFilename =
+  "data/hex8_force.spatialdb";
+
+pylith::bc::PointForceDataHex8::PointForceDataHex8(void)
+{ // constructor
+  id = _id;
+  label = const_cast<char*>(_label);
+
+  numDOF = _numDOF;
+  numForceDOF = _numForceDOF;
+  forceDOF = const_cast<int*>(_forceDOF);
+
+  numForcePts = _numForcePts;
+  forcePoints = const_cast<int*>(_forcePoints);
+
+  tRef = _tRef;
+  forceRate = _forceRate;
+  forceInitial = const_cast<double*>(_forceInitial);
+
+  tResidual = _tResidual;
+  residual = const_cast<double*>(_residual);
+
+  meshFilename = const_cast<char*>(_meshFilename);
+  dbFilename = const_cast<char*>(_dbFilename);
+} // constructor
+
+pylith::bc::PointForceDataHex8::~PointForceDataHex8(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataHex8.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_bc_forcedatadatahex8_hh)
+#define pylith_bc_forcedatadatahex8_hh
+
+#include "PointForceData.hh"
+
+namespace pylith {
+  namespace bc {
+     class PointForceDataHex8;
+  } // pylith
+} // bc
+
+class pylith::bc::PointForceDataHex8 : public PointForceData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  PointForceDataHex8(void);
+
+  /// Destructor
+  ~PointForceDataHex8(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const double _tRef; ///< Reference time for rate of change of forces.
+  static const double _forceRate; ///< Rate of change of force.
+  static const double _tResidual; ///< Time for computing residual.
+
+  static const int _numDOF; ///< Number of degrees of freedom at each point.
+  static const int _numForceDOF; ///< Number of forces at points.
+  static const int _numForcePts; ///< Number of points with forces.
+
+  static const int _id; ///< Boundary condition identifier
+  static const char* _label; ///< Label for boundary condition group
+
+  static const int _forceDOF[]; ///< Degrees of freedom that are constrained at each point
+  static const int _forcePoints[]; ///< Array of indices of points with forces.
+  static const double _forceInitial[]; ///< Forces at points.
+  static const double _residual[]; ///< Residual field.
+
+  static const char* _meshFilename; ///< Filename for input mesh.
+  static const char* _dbFilename; ///< Filename of simple spatial database.
+};
+
+#endif // pylith_bc_forcedatadatahex8_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,84 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Mesh: meshLine2.txt
+ *
+ * Point force BC at vertices 0 and 2.
+ *
+ * Fixed DOF: { 0 }
+ *
+ * Values
+ *   0: 1.1
+ *   2: 2.2
+ * tref = 0.6
+ * Rate of change
+ *   +0.3
+ */
+
+#include "PointForceDataLine2.hh"
+
+const int pylith::bc::PointForceDataLine2::_id = 0;
+
+const char* pylith::bc::PointForceDataLine2::_label = "bc0";
+
+const int pylith::bc::PointForceDataLine2::_numDOF = 1;
+const int pylith::bc::PointForceDataLine2::_numForceDOF = 1;
+const int pylith::bc::PointForceDataLine2::_forceDOF[] = { 0 };
+
+const int pylith::bc::PointForceDataLine2::_numForcePts = 2;
+const int pylith::bc::PointForceDataLine2::_forcePoints[] = { 0, 2 };
+
+const double pylith::bc::PointForceDataLine2::_tRef = 0.6;
+const double pylith::bc::PointForceDataLine2::_forceRate = 0.3;
+const double pylith::bc::PointForceDataLine2::_forceInitial[] =
+  { 1.1, 2.2 };
+
+const double pylith::bc::PointForceDataLine2::_tResidual = 1.5;
+const double pylith::bc::PointForceDataLine2::_residual[] =
+  { 1.37,
+    0.0,
+    2.47,
+  };
+
+const char* pylith::bc::PointForceDataLine2::_meshFilename = 
+  "data/line2.mesh";
+const char* pylith::bc::PointForceDataLine2::_dbFilename =
+  "data/line2_force.spatialdb";
+
+pylith::bc::PointForceDataLine2::PointForceDataLine2(void)
+{ // constructor
+  id = _id;
+  label = const_cast<char*>(_label);
+
+  numDOF = _numDOF;
+  numForceDOF = _numForceDOF;
+  forceDOF = const_cast<int*>(_forceDOF);
+
+  numForcePts = _numForcePts;
+  forcePoints = const_cast<int*>(_forcePoints);
+
+  tRef = _tRef;
+  forceRate = _forceRate;
+  forceInitial = const_cast<double*>(_forceInitial);
+
+  tResidual = _tResidual;
+  residual = const_cast<double*>(_residual);
+
+  meshFilename = const_cast<char*>(_meshFilename);
+  dbFilename = const_cast<char*>(_dbFilename);
+} // constructor
+
+pylith::bc::PointForceDataLine2::~PointForceDataLine2(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataLine2.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_bc_forcedatadataline2_hh)
+#define pylith_bc_forcedatadataline2_hh
+
+#include "PointForceData.hh"
+
+namespace pylith {
+  namespace bc {
+     class PointForceDataLine2;
+  } // pylith
+} // bc
+
+class pylith::bc::PointForceDataLine2 : public PointForceData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  PointForceDataLine2(void);
+
+  /// Destructor
+  ~PointForceDataLine2(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const double _tRef; ///< Reference time for rate of change of forces.
+  static const double _forceRate; ///< Rate of change of force.
+  static const double _tResidual; ///< Time for computing residual.
+
+  static const int _numDOF; ///< Number of degrees of freedom at each point.
+  static const int _numForceDOF; ///< Number of forces at points.
+  static const int _numForcePts; ///< Number of points with forces.
+
+  static const int _id; ///< Boundary condition identifier
+  static const char* _label; ///< Label for boundary condition group
+
+  static const int _forceDOF[]; ///< Degrees of freedom that are constrained at each point
+  static const int _forcePoints[]; ///< Array of indices of points with forces.
+  static const double _forceInitial[]; ///< Forces at points.
+  static const double _residual[]; ///< Residual field.
+
+  static const char* _meshFilename; ///< Filename for input mesh.
+  static const char* _dbFilename; ///< Filename of simple spatial database.
+};
+
+#endif // pylith_bc_forcedatadataline2_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,90 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Mesh: meshQuad4.txt
+ *
+ * Point force BC at vertices 0, 2, 4.
+ *
+ * Fixed DOF: { 0, 1 }
+ *
+ * Values
+ *   0: 0.1, 0.6
+ *   2: 0.5, 0.3
+ *   4: 0.4, 0.2
+ * tRef = 3.0
+ * Rate of change = -0.5
+ */
+
+#include "PointForceDataQuad4.hh"
+
+const int pylith::bc::PointForceDataQuad4::_id = 0;
+
+const char* pylith::bc::PointForceDataQuad4::_label = "bc3";
+
+const int pylith::bc::PointForceDataQuad4::_numDOF = 2;
+const int pylith::bc::PointForceDataQuad4::_numForceDOF = 2;
+const int pylith::bc::PointForceDataQuad4::_forceDOF[] = { 0, 1 };
+
+const int pylith::bc::PointForceDataQuad4::_numForcePts = 3;
+const int pylith::bc::PointForceDataQuad4::_forcePoints[] = { 0, 2, 4 };
+
+const double pylith::bc::PointForceDataQuad4::_tRef = 3.0;
+const double pylith::bc::PointForceDataQuad4::_forceRate = -0.5;
+const double pylith::bc::PointForceDataQuad4::_forceInitial[] =
+  { 0.1, 0.6,
+    0.5, 0.3,
+    0.4, 0.2,
+  };
+
+const double pylith::bc::PointForceDataQuad4::_tResidual = 4.5;
+const double pylith::bc::PointForceDataQuad4::_residual[] =
+  { -0.65, -0.15,
+     0.0, 0.0,
+    -0.25, -0.45,
+     0.0, 0.0,
+    -0.35, -0.55,
+     0.0, 0.0,
+  };
+
+const char* pylith::bc::PointForceDataQuad4::_meshFilename = 
+  "data/quad4.mesh";
+const char* pylith::bc::PointForceDataQuad4::_dbFilename =
+  "data/quad4_force.spatialdb";
+
+pylith::bc::PointForceDataQuad4::PointForceDataQuad4(void)
+{ // constructor
+  id = _id;
+  label = const_cast<char*>(_label);
+
+  numDOF = _numDOF;
+  numForceDOF = _numForceDOF;
+  forceDOF = const_cast<int*>(_forceDOF);
+
+  numForcePts = _numForcePts;
+  forcePoints = const_cast<int*>(_forcePoints);
+
+  tRef = _tRef;
+  forceRate = _forceRate;
+  forceInitial = const_cast<double*>(_forceInitial);
+
+  tResidual = _tResidual;
+  residual = const_cast<double*>(_residual);
+
+  meshFilename = const_cast<char*>(_meshFilename);
+  dbFilename = const_cast<char*>(_dbFilename);
+} // constructor
+
+pylith::bc::PointForceDataQuad4::~PointForceDataQuad4(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataQuad4.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_bc_forcedatadataquad4_hh)
+#define pylith_bc_forcedatadataquad4_hh
+
+#include "PointForceData.hh"
+
+namespace pylith {
+  namespace bc {
+     class PointForceDataQuad4;
+  } // pylith
+} // bc
+
+class pylith::bc::PointForceDataQuad4 : public PointForceData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  PointForceDataQuad4(void);
+
+  /// Destructor
+  ~PointForceDataQuad4(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const double _tRef; ///< Reference time for rate of change of forces.
+  static const double _forceRate; ///< Rate of change of force.
+  static const double _tResidual; ///< Time for computing residual.
+
+  static const int _numDOF; ///< Number of degrees of freedom at each point.
+  static const int _numForceDOF; ///< Number of forces at points.
+  static const int _numForcePts; ///< Number of points with forces.
+
+  static const int _id; ///< Boundary condition identifier
+  static const char* _label; ///< Label for boundary condition group
+
+  static const int _forceDOF[]; ///< Degrees of freedom that are constrained at each point
+  static const int _forcePoints[]; ///< Array of indices of points with forces.
+  static const double _forceInitial[]; ///< Forces at points.
+  static const double _residual[]; ///< Residual field.
+
+  static const char* _meshFilename; ///< Filename for input mesh.
+  static const char* _dbFilename; ///< Filename of simple spatial database.
+};
+
+#endif // pylith_bc_forcedatadataquad4_hh
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.cc	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,89 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+/* Mesh: meshTet4.txt
+ *
+ * Point force BC at vertices 2.
+ *
+ * Fixed DOF: { 1, 2 }
+ *
+ * Values
+ *   1: 0.7, 0.2
+ *   2: 0.7, 0.2
+ *   3: 0.7, 0.2
+ * tRef = 1.2
+ * Rate of change = 4.0
+ */
+
+#include "PointForceDataTet4.hh"
+
+const int pylith::bc::PointForceDataTet4::_id = 0;
+
+const char* pylith::bc::PointForceDataTet4::_label = "bc3";
+
+const int pylith::bc::PointForceDataTet4::_numDOF = 3;
+const int pylith::bc::PointForceDataTet4::_numForceDOF = 2;
+const int pylith::bc::PointForceDataTet4::_forceDOF[] = { 1, 2 };
+
+const int pylith::bc::PointForceDataTet4::_numForcePts = 3;
+const int pylith::bc::PointForceDataTet4::_forcePoints[] = { 1, 2, 3 };
+
+const double pylith::bc::PointForceDataTet4::_tRef = 1.2;
+const double pylith::bc::PointForceDataTet4::_forceRate = 4.0;
+const double pylith::bc::PointForceDataTet4::_forceInitial[] = {
+  0.7, 0.2,
+  0.7, 0.2,
+  0.7, 0.2,
+};
+
+const double pylith::bc::PointForceDataTet4::_tResidual = 1.3;
+const double pylith::bc::PointForceDataTet4::_residual[] =
+  { 0.0, 0.0, 0.0,
+    0.0, 1.1, 0.6,
+    0.0, 1.1, 0.6,
+    0.0, 1.1, 0.6,
+    0.0, 0.0, 0.0,
+  };
+
+const char* pylith::bc::PointForceDataTet4::_meshFilename = 
+  "data/tet4.mesh";
+const char* pylith::bc::PointForceDataTet4::_dbFilename =
+  "data/tet4_force.spatialdb";
+
+pylith::bc::PointForceDataTet4::PointForceDataTet4(void)
+{ // constructor
+  id = _id;
+  label = const_cast<char*>(_label);
+
+  numDOF = _numDOF;
+  numForceDOF = _numForceDOF;
+  forceDOF = const_cast<int*>(_forceDOF);
+
+  numForcePts = _numForcePts;
+  forcePoints = const_cast<int*>(_forcePoints);
+
+  tRef = _tRef;
+  forceRate = _forceRate;
+  forceInitial = const_cast<double*>(_forceInitial);
+
+  tResidual = _tResidual;
+  residual = const_cast<double*>(_residual);
+
+  meshFilename = const_cast<char*>(_meshFilename);
+  dbFilename = const_cast<char*>(_dbFilename);
+} // constructor
+
+pylith::bc::PointForceDataTet4::~PointForceDataTet4(void)
+{}
+
+
+// End of file

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.hh
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.hh	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTet4.hh	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+//
+// ======================================================================
+//
+//                           Brad T. Aagaard
+//                        U.S. Geological Survey
+//
+// {LicenseText}
+//
+// ======================================================================
+//
+
+#if !defined(pylith_bc_forcedatadatatet4_hh)
+#define pylith_bc_forcedatadatatet4_hh
+
+#include "PointForceData.hh"
+
+namespace pylith {
+  namespace bc {
+     class PointForceDataTet4;
+  } // pylith
+} // bc
+
+class pylith::bc::PointForceDataTet4 : public PointForceData
+{
+
+// PUBLIC METHODS ///////////////////////////////////////////////////////
+public: 
+
+  /// Constructor
+  PointForceDataTet4(void);
+
+  /// Destructor
+  ~PointForceDataTet4(void);
+
+// PRIVATE MEMBERS //////////////////////////////////////////////////////
+private:
+
+  static const double _tRef; ///< Reference time for rate of change of forces.
+  static const double _forceRate; ///< Rate of change of force.
+  static const double _tResidual; ///< Time for computing residual.
+
+  static const int _numDOF; ///< Number of degrees of freedom at each point.
+  static const int _numForceDOF; ///< Number of forces at points.
+  static const int _numForcePts; ///< Number of points with forces.
+
+  static const int _id; ///< Boundary condition identifier
+  static const char* _label; ///< Label for boundary condition group
+
+  static const int _forceDOF[]; ///< Degrees of freedom that are constrained at each point
+  static const int _forcePoints[]; ///< Array of indices of points with forces.
+  static const double _forceInitial[]; ///< Forces at points.
+  static const double _residual[]; ///< Residual field.
+
+  static const char* _meshFilename; ///< Filename for input mesh.
+  static const char* _dbFilename; ///< Filename of simple spatial database.
+};
+
+#endif // pylith_bc_forcedatadatatet4_hh
+
+// End of file

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTri3.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTri3.cc	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/PointForceDataTri3.cc	2009-06-07 16:58:06 UTC (rev 15136)
@@ -12,7 +12,7 @@
 
 /* Mesh: meshTri3.txt
  *
- * PointForce BC at vertices 1 and 3.
+ * Point force BC at vertices 1 and 3.
  *
  * Force DOF: { 1 }
  *

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/hex8_force.spatialdb
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/hex8_force.spatialdb	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/hex8_force.spatialdb	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,17 @@
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 3
+  value-names =  force-x  force-y force-z
+  value-units =  Pa*m**2  Pa*m**2  Pa*m**2
+  num-locs = 4
+  data-dim = 1
+  space-dim = 3
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 3
+  }
+}
+-1.0 -1.0 -1.0   -0.2  9.9  0.3
+-1.0  1.0 -1.0    0.1  9.9  0.7
+-1.0 -1.0  1.0    0.5  9.9  0.4
+-1.0  1.0  1.0    3.2  9.9  6.1

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/line2_force.spatialdb
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/line2_force.spatialdb	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/line2_force.spatialdb	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,15 @@
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 1
+  value-names =  force-x
+  value-units =  Pa*m**2
+  num-locs = 2
+  data-dim = 1
+  space-dim = 1
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 1
+  }
+}
+-1.0  1.1
++1.0  2.2

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/quad4_force.spatialdb
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/quad4_force.spatialdb	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/quad4_force.spatialdb	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,16 @@
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 2
+  value-names =  force-x  force-y
+  value-units =  Pa*m**2  Pa*m**2
+  num-locs = 3
+  data-dim = 2
+  space-dim = 2
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 2
+  }
+}
+-1.0 -1.0    0.1  0.6
+ 0.0 -1.0    0.5  0.3
+ 1.0 -1.0    0.4  0.2

Added: short/3D/PyLith/trunk/unittests/libtests/bc/data/tet4_force.spatialdb
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/tet4_force.spatialdb	                        (rev 0)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/tet4_force.spatialdb	2009-06-07 16:58:06 UTC (rev 15136)
@@ -0,0 +1,14 @@
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 2
+  value-names =  force-y  force-z
+  value-units =  Pa*m**2  Pa*m**2
+  num-locs = 1
+  data-dim = 0
+  space-dim = 3
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 3
+  }
+}
+0.0 0.0 0.0  0.7  0.2

Modified: short/3D/PyLith/trunk/unittests/libtests/bc/data/tri3_force.spatialdb
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/bc/data/tri3_force.spatialdb	2009-06-07 14:58:46 UTC (rev 15135)
+++ short/3D/PyLith/trunk/unittests/libtests/bc/data/tri3_force.spatialdb	2009-06-07 16:58:06 UTC (rev 15136)
@@ -2,7 +2,7 @@
 SimpleDB {
   num-values = 1
   value-names =  force-y
-  value-units =  m
+  value-units =  Pa*m**2
   num-locs = 2
   data-dim = 1
   space-dim = 2



More information about the CIG-COMMITS mailing list