[cig-commits] r16668 - in short/3D/PyLith/trunk/unittests/pytests: bc faults feassemble

brad at geodynamics.org brad at geodynamics.org
Sat May 8 15:26:30 PDT 2010


Author: brad
Date: 2010-05-08 15:26:30 -0700 (Sat, 08 May 2010)
New Revision: 16668

Modified:
   short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py
   short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py
   short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveDyn.py
   short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py
   short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicit.py
   short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicitLgDeform.py
   short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py
   short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicitLgDeform.py
Log:
Updated interfaces in Python unit tests (tests were failing).

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestAbsorbingDampers.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -146,7 +146,7 @@
     t = 0.50
     dt = 0.1
     totalTime = 5
-    bc.poststep(t, dt, totalTime, fields)
+    bc.poststep(t, dt, fields)
 
     # No testing of result.
     return
@@ -235,6 +235,7 @@
     fields.add("dispIncr(t->t+dt)", "displacement")
     fields.add("disp(t)", "displacement")
     fields.add("disp(t-dt)", "displacement")
+    fields.add("velocity(t)", "velocity")
     fields.solutionName("dispIncr(t->t+dt)")
 
     residual = fields.get("residual")

Modified: short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/TestNeumann.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -145,7 +145,7 @@
     t = 0.50
     dt = 0.1
     totalTime = 5
-    bc.poststep(t, dt, totalTime, fields)
+    bc.poststep(t, dt, fields)
 
     # No testing of result.
     return

Modified: short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveDyn.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveDyn.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveDyn.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -204,7 +204,7 @@
 
     dt = 0.1
     totalTime = 5
-    fault.poststep(t, dt, totalTime, fields)
+    fault.poststep(t, dt, fields)
 
     # We should really add something here to check to make sure things
     # actually initialized correctly    

Modified: short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/faults/TestFaultCohesiveKin.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -231,7 +231,7 @@
 
     dt = 0.1
     totalTime = 5
-    fault.poststep(t, dt, totalTime, fields)
+    fault.poststep(t, dt, fields)
 
     # We should really add something here to check to make sure things
     # actually initialized correctly    

Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicit.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicit.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicit.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -187,7 +187,7 @@
     t = 7.3
     dt = 0.1
     totalTime = 23.0
-    integrator.poststep(t, dt, totalTime, fields)
+    integrator.poststep(t, dt, fields)
 
     # No test of result
     return
@@ -286,6 +286,7 @@
     fields.add("dispIncr(t->t+dt)", "displacement")
     fields.add("disp(t)", "displacement")
     fields.add("disp(t-dt)", "displacement")
+    fields.add("acceleration(t)", "acceleration")
     fields.solutionName("dispIncr(t->t+dt)")
 
     residual = fields.get("residual")

Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicitLgDeform.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicitLgDeform.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityExplicitLgDeform.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -187,7 +187,7 @@
     t = 7.3
     dt = 0.1
     totalTime = 23.0
-    integrator.poststep(t, dt, totalTime, fields)
+    integrator.poststep(t, dt, fields)
 
     # No test of result
     return
@@ -286,6 +286,7 @@
     fields.add("disp(t+dt)", "displacement")
     fields.add("disp(t)", "displacement")
     fields.add("disp(t-dt)", "displacement")
+    fields.add("acceleration(t)", "acceleration")
     fields.solutionName("disp(t+dt)")
 
     residual = fields.get("residual")

Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicit.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -183,7 +183,7 @@
     t = 7.3
     dt = 0.1
     totalTime = 23.0
-    integrator.poststep(t, dt, totalTime, fields)
+    integrator.poststep(t, dt, fields)
 
     # No test of result
     return

Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicitLgDeform.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicitLgDeform.py	2010-05-08 01:18:50 UTC (rev 16667)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/TestElasticityImplicitLgDeform.py	2010-05-08 22:26:30 UTC (rev 16668)
@@ -183,7 +183,7 @@
     t = 7.3
     dt = 0.1
     totalTime = 23.0
-    integrator.poststep(t, dt, totalTime, fields)
+    integrator.poststep(t, dt, fields)
 
     # No test of result
     return



More information about the CIG-COMMITS mailing list