[cig-commits] r15522 - in short/3D/PyLith/trunk: . unittests/pytests/problems

brad at geodynamics.org brad at geodynamics.org
Mon Aug 10 13:33:09 PDT 2009


Author: brad
Date: 2009-08-10 13:33:09 -0700 (Mon, 10 Aug 2009)
New Revision: 15522

Modified:
   short/3D/PyLith/trunk/TODO
   short/3D/PyLith/trunk/unittests/pytests/problems/TestTimeStepAdapt.py
Log:
Updated test to use new default stability factor (2.0 instead of 1.2) for adaptive time stepping.

Modified: short/3D/PyLith/trunk/TODO
===================================================================
--- short/3D/PyLith/trunk/TODO	2009-08-10 09:28:00 UTC (rev 15521)
+++ short/3D/PyLith/trunk/TODO	2009-08-10 20:33:09 UTC (rev 15522)
@@ -2,7 +2,7 @@
 CURRENT ISSUES/PRIORITIES
 ======================================================================
 
-test memory leaks
+test memory leak fixes
 
 Update manual
   with stable time step info (0.2 times Maxwell time)

Modified: short/3D/PyLith/trunk/unittests/pytests/problems/TestTimeStepAdapt.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/problems/TestTimeStepAdapt.py	2009-08-10 09:28:00 UTC (rev 15521)
+++ short/3D/PyLith/trunk/unittests/pytests/problems/TestTimeStepAdapt.py	2009-08-10 20:33:09 UTC (rev 15522)
@@ -88,7 +88,7 @@
     mesh = None
 
     # Set time step
-    dt = 0.5 / 1.2
+    dt = 0.5 / 2.0
     self.assertEqual(dt, tstep.timeStep(mesh, integrators))
 
     # Increase stable time step, but time step should not change (skipped)
@@ -97,7 +97,7 @@
 
     # Reduce time step even if though should have skipped
     integrators[1].dt = 0.2
-    dt = 0.2 / 1.2
+    dt = 0.2 / 2.0
     self.assertEqual(dt, tstep.timeStep(mesh, integrators))
 
     # Skip adjusting time step
@@ -108,8 +108,8 @@
     self.assertEqual(dt, tstep.timeStep(mesh, integrators))
 
     # Adjust time step and stability factor
-    tstep.stabilityFactor = 2.0
-    dt = 0.8 / 2.0
+    tstep.stabilityFactor = 3.0
+    dt = 0.8 / 3.0
     self.assertEqual(dt, tstep.timeStep(mesh, integrators))
 
     # Skip adjusting time step
@@ -140,7 +140,7 @@
     integrators = [Integrator(3.0),
                    Integrator(2.4)]
     mesh = None
-    dt = 2.4 / 1.2
+    dt = 2.4 / 2.0
     tstep.timeStep(mesh, integrators)
     self.assertEqual(dt, tstep.currentStep())
 



More information about the CIG-COMMITS mailing list