[cig-commits] r7050 - in short/3D/PyLith/trunk: . tests tests/1d tests/1d/line2 tests/1d/line3 tests/2d tests/2d/quad4 tests/2d/tri3 tests/3d tests/3d/hex8 tests/3d/tet4

brad at geodynamics.org brad at geodynamics.org
Sat Jun 2 13:36:44 PDT 2007


Author: brad
Date: 2007-06-02 13:36:43 -0700 (Sat, 02 Jun 2007)
New Revision: 7050

Added:
   short/3D/PyLith/trunk/tests/1d/Makefile.am
   short/3D/PyLith/trunk/tests/1d/line2/Makefile.am
   short/3D/PyLith/trunk/tests/1d/line2/TestAxial.py
   short/3D/PyLith/trunk/tests/1d/line2/axialextension.cfg
   short/3D/PyLith/trunk/tests/1d/line2/testpylith.py
   short/3D/PyLith/trunk/tests/1d/line3/Makefile.am
   short/3D/PyLith/trunk/tests/1d/line3/README
   short/3D/PyLith/trunk/tests/1d/line3/TestAxial.py
   short/3D/PyLith/trunk/tests/1d/line3/axialextension.cfg
   short/3D/PyLith/trunk/tests/1d/line3/bar.mesh
   short/3D/PyLith/trunk/tests/1d/line3/bcsingle.odb
   short/3D/PyLith/trunk/tests/1d/line3/dispbc.spatialdb
   short/3D/PyLith/trunk/tests/1d/line3/matprops.spatialdb
   short/3D/PyLith/trunk/tests/1d/line3/testpylith.py
   short/3D/PyLith/trunk/tests/2d/Makefile.am
   short/3D/PyLith/trunk/tests/2d/quad4/Makefile.am
   short/3D/PyLith/trunk/tests/2d/tri3/Makefile.am
   short/3D/PyLith/trunk/tests/3d/Makefile.am
   short/3D/PyLith/trunk/tests/3d/hex8/Makefile.am
   short/3D/PyLith/trunk/tests/3d/tet4/Makefile.am
   short/3D/PyLith/trunk/tests/Makefile.am
Removed:
   short/3D/PyLith/trunk/tests/1d/line2/implicit.cfg
   short/3D/PyLith/trunk/tests/1d/line2/pylithapp.cfg
Modified:
   short/3D/PyLith/trunk/Makefile.am
   short/3D/PyLith/trunk/TODO
   short/3D/PyLith/trunk/configure.ac
   short/3D/PyLith/trunk/tests/1d/line2/README
Log:
Implemented axial extension tests with linear and quadratic line cells.

Modified: short/3D/PyLith/trunk/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -19,7 +19,9 @@
 	applications
 
 if ENABLE_TESTING
-  SUBDIRS += unittests
+  SUBDIRS += \
+	unittests \
+	tests
 endif
 
 if ENABLE_DOCUMENTATION

Modified: short/3D/PyLith/trunk/TODO
===================================================================
--- short/3D/PyLith/trunk/TODO	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/TODO	2007-06-02 20:36:43 UTC (rev 7050)
@@ -12,11 +12,6 @@
 
 1. Simple tests with analytical solutions
 
-   a. 1-D
-     i. line2 cells
-       (1) axial compression
-     ii. line3 cells
-       (1) axial compression
    b. 2-D
      i. tri3 cells
        (1) axial compression

Modified: short/3D/PyLith/trunk/configure.ac
===================================================================
--- short/3D/PyLith/trunk/configure.ac	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/configure.ac	2007-06-02 20:36:43 UTC (rev 7050)
@@ -246,6 +246,16 @@
 		unittests/pytests/topology/Makefile
 		unittests/pytests/topology/data/Makefile
 		unittests/pytests/utils/Makefile
+		tests/Makefile
+		tests/1d/Makefile
+		tests/1d/line2/Makefile
+		tests/1d/line3/Makefile
+		tests/2d/Makefile
+		tests/2d/tri3/Makefile
+		tests/2d/quad4/Makefile
+		tests/3d/Makefile
+		tests/3d/tet4/Makefile
+		tests/3d/hex8/Makefile
                 doc/Makefile])
 
 AC_OUTPUT

Added: short/3D/PyLith/trunk/tests/1d/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/1d/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,18 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+SUBDIRS = \
+	line2 \
+	line3
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/1d/line2/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line2/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,46 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+TESTS = testpylith.py
+
+check_SCRIPTS = testpylith.py
+
+noinst_PYTHON = \
+	TestAxial.py
+
+noinst_DATA = \
+	bar.mesh \
+	axialextension.cfg \
+	bcsingle.odb \
+	dispbc.spatialdb \
+	matprops.spatialdb
+
+noinst_TMP = \
+	output.vtk
+
+
+TESTS_ENVIRONMENT = $(PYTHON)
+
+
+# 'export' the input files by performing a mock install
+export_datadir = $(top_builddir)/tests/1d/line2
+export-data: $(noinst_DATA)
+	for f in $(noinst_DATA); do $(install_sh_DATA) $(srcdir)/$$f $(export_datadir); done
+
+BUILT_SOURCES = export-data
+
+CLEANFILES = \
+	$(export_datadir)/$(noinst_DATA) \
+	$(export_datadir)/$(noinst_TMP)
+
+
+# End of file 

Modified: short/3D/PyLith/trunk/tests/1d/line2/README
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/README	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line2/README	2007-06-02 20:36:43 UTC (rev 7050)
@@ -1,4 +1,4 @@
-1-D axial extension test.
+1-D axial extension test with linear cells.
 
 
 0      1      2      3      4

Added: short/3D/PyLith/trunk/tests/1d/line2/TestAxial.py
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/TestAxial.py	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line2/TestAxial.py	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,53 @@
+#!/usr/bin/env python
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+## @file tests/TestAxial.py
+##
+## @brief Test suite for testing pylith with 1-D axial extension.
+
+import unittest
+import numpy
+import tables
+
+def run_pylith():
+  """
+  Run pylith.
+  """
+  if not "done" in dir(run_pylith):
+    from pylith.PyLithApp import PyLithApp
+    app = PyLithApp("axialextension")
+    app.run()
+    run_pylith.done = True
+  return
+
+
+class TestAxial(unittest.TestCase):
+  """
+  Test suite for testing pylith with 1-D axial extension.
+  """
+
+  def setUp(self):
+    """
+    Setup for test.
+    """
+    run_pylith()
+    return
+
+
+  def test_disp(self):
+    """
+    Check displacement field.
+    """
+    return
+
+
+# End of file 

Copied: short/3D/PyLith/trunk/tests/1d/line2/axialextension.cfg (from rev 7047, short/3D/PyLith/trunk/tests/1d/line2/pylithapp.cfg)
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/pylithapp.cfg	2007-06-02 04:30:16 UTC (rev 7047)
+++ short/3D/PyLith/trunk/tests/1d/line2/axialextension.cfg	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,66 @@
+# -*- Python -*-
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# journal
+# ----------------------------------------------------------------------
+[pylithapp.journal.info]
+timedependent = 1
+explicit = 1
+implicit = 1
+petsc = 1
+solverlinear = 1
+meshioascii = 1
+homogeneous = 1
+explicitelasticity = 1
+quadrature1d = 1
+fiatsimplex = 1
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator]
+debug = 1
+
+[pylithapp.mesh_generator.importer]
+filename = bar.mesh
+coordsys.space_dim = 1
+
+# ----------------------------------------------------------------------
+# problem
+# ----------------------------------------------------------------------
+[pylithapp.timedependent]
+total_time = 0.0*s
+default_dt = 1.0*s
+dimension = 1
+formulation = pylith.problems.Implicit
+bc = bcsingle
+
+# ----------------------------------------------------------------------
+# materials
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.materials]
+material = pylith.materials.ElasticStrain1D
+
+[pylithapp.timedependent.materials.material]
+label = elastic material
+id = 1
+db.iohandler.filename = matprops.spatialdb
+quadrature = pylith.feassemble.quadrature.Quadrature1D
+quadrature.cell.shape = line
+
+# ----------------------------------------------------------------------
+# boundary conditions
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.bc.bc]
+fixed_dof = [0]
+id = 10
+label = end points
+db.label = Dirichlet BC
+db.iohandler.filename = dispbc.spatialdb
+
+# ----------------------------------------------------------------------
+# PETSc
+# ----------------------------------------------------------------------
+[pylithapp.petsc]
+pc_type = jacobi

Deleted: short/3D/PyLith/trunk/tests/1d/line2/implicit.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/implicit.cfg	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line2/implicit.cfg	2007-06-02 20:36:43 UTC (rev 7050)
@@ -1,19 +0,0 @@
-# -*- Python -*-
-[pylithapp]
-
-# ----------------------------------------------------------------------
-# problem
-# ----------------------------------------------------------------------
-[pylithapp.timedependent]
-formulation = pylith.problems.Implicit
-bc = bcsingle
-
-# ----------------------------------------------------------------------
-# boundary conditions
-# ----------------------------------------------------------------------
-[pylithapp.timedependent.bc.bc]
-fixed_dof = [0]
-id = 10
-label = end points
-db.label = Dirichlet BC
-db.iohandler.filename = dispbc.spatialdb

Deleted: short/3D/PyLith/trunk/tests/1d/line2/pylithapp.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/pylithapp.cfg	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line2/pylithapp.cfg	2007-06-02 20:36:43 UTC (rev 7050)
@@ -1,54 +0,0 @@
-# -*- Python -*-
-[pylithapp]
-
-# ----------------------------------------------------------------------
-# journal
-# ----------------------------------------------------------------------
-[pylithapp.journal.info]
-timedependent = 1
-explicit = 1
-implicit = 1
-petsc = 1
-solverlinear = 1
-meshioascii = 1
-homogeneous = 1
-explicitelasticity = 1
-quadrature2d = 1
-fiatsimplex = 1
-
-# ----------------------------------------------------------------------
-# mesh_generator
-# ----------------------------------------------------------------------
-[pylithapp.mesh_generator]
-debug = 1
-
-[pylithapp.mesh_generator.importer]
-filename = bar.mesh
-coordsys.space_dim = 1
-
-# ----------------------------------------------------------------------
-# problem
-# ----------------------------------------------------------------------
-[pylithapp.timedependent]
-total_time = 0.0*s
-default_dt = 1.0*s
-dimension = 1
-
-# ----------------------------------------------------------------------
-# materials
-# ----------------------------------------------------------------------
-[pylithapp.timedependent.materials]
-material = pylith.materials.ElasticStrain1D
-
-[pylithapp.timedependent.materials.material]
-label = elastic material
-id = 1
-db.iohandler.filename = matprops.spatialdb
-quadrature = pylith.feassemble.quadrature.Quadrature1D
-quadrature.cell.shape = line
-
-# ----------------------------------------------------------------------
-# PETSc
-# ----------------------------------------------------------------------
-[pylithapp.petsc]
-pc_type = jacobi

Added: short/3D/PyLith/trunk/tests/1d/line2/testpylith.py
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line2/testpylith.py	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line2/testpylith.py	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+#
+# ======================================================================
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# {LicenseText}
+#
+# ======================================================================
+#
+
+__requires__ = "PyLith"
+
+import unittest
+
+def suite():
+  """
+  Create test suite.
+  """
+  suite = unittest.TestSuite()
+
+  from TestAxial import TestAxial
+  suite.addTest(unittest.makeSuite(TestAxial))
+
+  return suite
+
+
+def main():
+  """
+  Run test suite.
+  """
+  unittest.TextTestRunner(verbosity=2).run(suite())
+  return
+
+
+# ----------------------------------------------------------------------
+if __name__ == '__main__':
+  main()
+
+  
+# End of file 


Property changes on: short/3D/PyLith/trunk/tests/1d/line2/testpylith.py
___________________________________________________________________
Name: svn:executable
   + *

Added: short/3D/PyLith/trunk/tests/1d/line3/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,46 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+TESTS = testpylith.py
+
+check_SCRIPTS = testpylith.py
+
+noinst_PYTHON = \
+	TestAxial.py
+
+noinst_DATA = \
+	bar.mesh \
+	axialextension.cfg \
+	bcsingle.odb \
+	dispbc.spatialdb \
+	matprops.spatialdb
+
+noinst_TMP = \
+	output.vtk
+
+
+TESTS_ENVIRONMENT = $(PYTHON)
+
+
+# 'export' the input files by performing a mock install
+export_datadir = $(top_builddir)/tests/1d/line3
+export-data: $(noinst_DATA)
+	for f in $(noinst_DATA); do $(install_sh_DATA) $(srcdir)/$$f $(export_datadir); done
+
+BUILT_SOURCES = export-data
+
+CLEANFILES = \
+	$(export_datadir)/$(noinst_DATA) \
+	$(export_datadir)/$(noinst_TMP)
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/1d/line3/README
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/README	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/README	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,19 @@
+1-D axial extension test with quadratic cells.
+
+
+0      1      2      3      4
+* -----*----- * -----*----- *
+
+Vertex   Coordinates
+  0        0.0
+  1        1.0
+  2        2.0
+  3        3.0
+  4        4.0
+
+Dirichlet boundary conditions
+  u(0) = -0.2
+  u(4) = +0.2
+
+Analytical solution
+  u(x) = -0.2 + 0.1 * x

Added: short/3D/PyLith/trunk/tests/1d/line3/TestAxial.py
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/TestAxial.py	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/TestAxial.py	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,53 @@
+#!/usr/bin/env python
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+## @file tests/TestAxial.py
+##
+## @brief Test suite for testing pylith with 1-D axial extension.
+
+import unittest
+import numpy
+import tables
+
+def run_pylith():
+  """
+  Run pylith.
+  """
+  if not "done" in dir(run_pylith):
+    from pylith.PyLithApp import PyLithApp
+    app = PyLithApp("axialextension")
+    app.run()
+    run_pylith.done = True
+  return
+
+
+class TestAxial(unittest.TestCase):
+  """
+  Test suite for testing pylith with 1-D axial extension.
+  """
+
+  def setUp(self):
+    """
+    Setup for test.
+    """
+    run_pylith()
+    return
+
+
+  def test_disp(self):
+    """
+    Check displacement field.
+    """
+    return
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/1d/line3/axialextension.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/axialextension.cfg	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/axialextension.cfg	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,67 @@
+# -*- Python -*-
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# journal
+# ----------------------------------------------------------------------
+[pylithapp.journal.info]
+timedependent = 1
+explicit = 1
+implicit = 1
+petsc = 1
+solverlinear = 1
+meshioascii = 1
+homogeneous = 1
+explicitelasticity = 1
+quadrature1d = 1
+fiatsimplex = 1
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator]
+debug = 1
+
+[pylithapp.mesh_generator.importer]
+filename = bar.mesh
+coordsys.space_dim = 1
+
+# ----------------------------------------------------------------------
+# problem
+# ----------------------------------------------------------------------
+[pylithapp.timedependent]
+total_time = 0.0*s
+default_dt = 1.0*s
+dimension = 1
+formulation = pylith.problems.Implicit
+bc = bcsingle
+
+# ----------------------------------------------------------------------
+# materials
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.materials]
+material = pylith.materials.ElasticStrain1D
+
+[pylithapp.timedependent.materials.material]
+label = elastic material
+id = 1
+db.iohandler.filename = matprops.spatialdb
+quadrature = pylith.feassemble.quadrature.Quadrature1D
+quadrature.cell.shape = line
+quadrature.cell.degree = 2
+
+# ----------------------------------------------------------------------
+# boundary conditions
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.bc.bc]
+fixed_dof = [0]
+id = 10
+label = end points
+db.label = Dirichlet BC
+db.iohandler.filename = dispbc.spatialdb
+
+# ----------------------------------------------------------------------
+# PETSc
+# ----------------------------------------------------------------------
+[pylithapp.petsc]
+pc_type = jacobi

Added: short/3D/PyLith/trunk/tests/1d/line3/bar.mesh
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/bar.mesh	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/bar.mesh	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,35 @@
+mesh = {
+  dimension = 1
+  vertices = {
+    dimension = 1
+    count = 5
+    coordinates = {
+      0   0.0
+      1   1.0
+      2   2.0
+      3   3.0
+      4   4.0
+    }
+  }
+  cells = {
+    num-corners = 3
+    count = 2
+    simplices = {
+      0    0  2  1
+      1    2  4  3
+    }
+    material-ids = {
+      0   1
+      1   1
+    }
+  }
+  group = {
+    type = vertices
+    name = end points
+    count = 2
+    indices = {
+      0
+      4
+    }
+  }
+}

Added: short/3D/PyLith/trunk/tests/1d/line3/bcsingle.odb
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/bcsingle.odb	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/bcsingle.odb	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,78 @@
+#!/usr/bin/env python
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+from pylith.problems.BoundaryConditions import BoundaryConditions
+
+# BCSingle class
+class BCSingle(BoundaryConditions):
+  """
+  Python boundary conditions container for a single boundary condition.
+
+  Factory: boundary_conditions
+  """
+
+  # INVENTORY //////////////////////////////////////////////////////////
+
+  class Inventory(BoundaryConditions.Inventory):
+    """
+    Python object for managing BCSingle facilities and properties.
+    """
+    
+    ## @class Inventory
+    ## Python object for managing BCSingle facilities and properties.
+    ##
+    ## \b Properties
+    ## @li None
+    ##
+    ## \b Facilities
+    ## @li \b bc Boundary condition.
+
+    import pyre.inventory
+    
+    from pylith.bc.Dirichlet import Dirichlet
+
+    bc = pyre.inventory.facility("bc", family="boundary_condition",
+                                   factory=Dirichlet)
+    bc.meta['tip'] = "Boundary condition."
+
+
+  # PUBLIC METHODS /////////////////////////////////////////////////////
+
+  def __init__(self, name="bcsingle"):
+    """
+    Constructor.
+    """
+    BoundaryConditions.__init__(self, name)
+    return
+
+
+  # PRIVATE METHODS ////////////////////////////////////////////////////
+
+  def _configure(self):
+    """
+    Set attributes from inventory.
+    """
+    BoundaryConditions._configure(self)
+    self.bc = [self.inventory.bc]
+    return
+
+  
+# FACTORIES ////////////////////////////////////////////////////////////
+
+def boundary_conditions():
+  """
+  Factory associated with BCSingle.
+  """
+  return BCSingle()
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/1d/line3/dispbc.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/dispbc.spatialdb	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/dispbc.spatialdb	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,15 @@
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 1
+  value-names =  dof-0
+  value-units =  m
+  num-locs = 2
+  data-dim = 1
+  space-dim = 1
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 1
+  }
+}
+0.0   -0.2
+4.0   +0.2

Added: short/3D/PyLith/trunk/tests/1d/line3/matprops.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/matprops.spatialdb	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/matprops.spatialdb	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,14 @@
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 3
+  value-names =  density vs vp
+  value-units =  kg/m^3  m/s  m/s
+  num-locs = 1
+  data-dim = 0
+  space-dim = 1
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 1
+  }
+}
+0.0   2500.0  3000.0  5291.502622129181

Added: short/3D/PyLith/trunk/tests/1d/line3/testpylith.py
===================================================================
--- short/3D/PyLith/trunk/tests/1d/line3/testpylith.py	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/1d/line3/testpylith.py	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+#
+# ======================================================================
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# {LicenseText}
+#
+# ======================================================================
+#
+
+__requires__ = "PyLith"
+
+import unittest
+
+def suite():
+  """
+  Create test suite.
+  """
+  suite = unittest.TestSuite()
+
+  from TestAxial import TestAxial
+  suite.addTest(unittest.makeSuite(TestAxial))
+
+  return suite
+
+
+def main():
+  """
+  Run test suite.
+  """
+  unittest.TextTestRunner(verbosity=2).run(suite())
+  return
+
+
+# ----------------------------------------------------------------------
+if __name__ == '__main__':
+  main()
+
+  
+# End of file 


Property changes on: short/3D/PyLith/trunk/tests/1d/line3/testpylith.py
___________________________________________________________________
Name: svn:executable
   + *

Added: short/3D/PyLith/trunk/tests/2d/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/2d/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/2d/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,19 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+SUBDIRS = 
+
+#	tri3
+#	quad4
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/2d/quad4/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/2d/quad4/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/2d/quad4/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,27 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+TESTS = testpylith.py
+
+check_SCRIPTS = testpylith.py
+
+noinst_PYTHON = \
+	TestAxial.py
+
+
+CLEANFILES = \
+	output.vtk
+
+TESTS_ENVIRONMENT = $(PYTHON)
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/2d/tri3/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/2d/tri3/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/2d/tri3/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,27 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+TESTS = testpylith.py
+
+check_SCRIPTS = testpylith.py
+
+noinst_PYTHON = \
+	TestAxial.py
+
+
+CLEANFILES = \
+	output.vtk
+
+TESTS_ENVIRONMENT = $(PYTHON)
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/3d/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/3d/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/3d/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,19 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+SUBDIRS =
+
+#	tet4
+#	hex8
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/3d/hex8/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/3d/hex8/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,27 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+TESTS = testpylith.py
+
+check_SCRIPTS = testpylith.py
+
+noinst_PYTHON = \
+	TestAxial.py
+
+
+CLEANFILES = \
+	output.vtk
+
+TESTS_ENVIRONMENT = $(PYTHON)
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/3d/tet4/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/3d/tet4/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/3d/tet4/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,27 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+TESTS = testpylith.py
+
+check_SCRIPTS = testpylith.py
+
+noinst_PYTHON = \
+	TestAxial.py
+
+
+CLEANFILES = \
+	output.vtk
+
+TESTS_ENVIRONMENT = $(PYTHON)
+
+
+# End of file 

Added: short/3D/PyLith/trunk/tests/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/tests/Makefile.am	2007-06-02 16:57:17 UTC (rev 7049)
+++ short/3D/PyLith/trunk/tests/Makefile.am	2007-06-02 20:36:43 UTC (rev 7050)
@@ -0,0 +1,20 @@
+# -*- Makefile -*-
+#
+# ----------------------------------------------------------------------
+#
+#                           Brad T. Aagaard
+#                        U.S. Geological Survey
+#
+# <LicenseText>
+#
+# ----------------------------------------------------------------------
+#
+
+SUBDIRS = \
+	1d
+
+#	2d
+#	3d
+
+
+# End of file 



More information about the cig-commits mailing list