[cig-commits] r21308 - short/3D/PyLith/trunk/unittests/pytests/bc

brad at geodynamics.org brad at geodynamics.org
Tue Jan 29 16:37:59 PST 2013


Author: brad
Date: 2013-01-29 16:37:59 -0800 (Tue, 29 Jan 2013)
New Revision: 21308

Modified:
   short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py
   short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py
   short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBoundary.py
   short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py
Log:
Fixed when allocation is called in bc pytests.

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py	2013-01-29 20:31:14 UTC (rev 21307)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py	2013-01-30 00:37:59 UTC (rev 21308)
@@ -94,15 +94,6 @@
     return
 
   
-  def test_useSolnIncr(self):
-    """
-    Test useSolnIncr().
-    """
-    (mesh, bc, fields) = self._initialize()
-    bc.useSolnIncr(True)
-    return
-
-
   def test_integrateResidual(self):
     """
     Test integrateResidual().

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py	2013-01-29 20:31:14 UTC (rev 21307)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBC.py	2013-01-30 00:37:59 UTC (rev 21308)
@@ -134,15 +134,6 @@
     return
 
 
-  def test_useSolnIncr(self):
-    """
-    Test useSolnIncr().
-    """
-    (mesh, bc, field) = self._initialize()
-    bc.useSolnIncr(True)
-    return
-
-
   def test_setField(self):
     """
     Test setField().
@@ -175,7 +166,6 @@
     bc.setConstraintSizes(field)
     field.allocate()
     bc.setConstraints(field)
-    bc.useSolnIncr(True)
     t0 = 1.0
     t1 = 2.0
     bc.setFieldIncr(t0, t1, field)
@@ -193,6 +183,7 @@
     neither set the input fields or verify the results.
     """
     (mesh, bc, field) = self._initialize()
+    field.allocate()
     bc.finalize()
 
     # We should really add something here to check to make sure things
@@ -252,10 +243,7 @@
     from pylith.topology.Field import MeshField
     field = MeshField(mesh)
     field.newSection(field.VERTICES_FIELD, cs.spaceDim())
-    field.allocate()
 
-    field.zero()
-    
     return (mesh, bc, field)
 
 

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBoundary.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBoundary.py	2013-01-29 20:31:14 UTC (rev 21307)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestDirichletBoundary.py	2013-01-30 00:37:59 UTC (rev 21308)
@@ -98,15 +98,6 @@
     return
 
 
-  def test_useSolnIncr(self):
-    """
-    Test useSolnIncr().
-    """
-    (mesh, bc, field) = self._initialize()
-    bc.useSolnIncr(True)
-    return
-
-
   def test_setField(self):
     """
     Test setField().
@@ -135,6 +126,7 @@
     neither set the input fields or verify the results.
     """
     (mesh, bc, field) = self._initialize()
+    field.allocate()
     bc.finalize()
 
     # We should really add something here to check to make sure things
@@ -204,8 +196,6 @@
     from pylith.topology.Field import MeshField
     field = MeshField(mesh)
     field.newSection(field.VERTICES_FIELD, cs.spaceDim())
-    field.allocate()
-    field.zero()
     
     return (mesh, bc, field)
 

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py	2013-01-29 20:31:14 UTC (rev 21307)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py	2013-01-30 00:37:59 UTC (rev 21308)
@@ -94,15 +94,6 @@
     return
 
   
-  def test_useSolnIncr(self):
-    """
-    Test useSolnIncr().
-    """
-    (mesh, bc, fields) = self._initialize()
-    bc.useSolnIncr(True)
-    return
-
-
   def test_integrateResidual(self):
     """
     Test integrateResidual().



More information about the CIG-COMMITS mailing list