[cig-commits] r20166 - short/3D/PyLith/branches/v1.7-trunk/pylith/problems

brad at geodynamics.org brad at geodynamics.org
Wed May 16 17:29:45 PDT 2012


Author: brad
Date: 2012-05-16 17:29:45 -0700 (Wed, 16 May 2012)
New Revision: 20166

Modified:
   short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Explicit.py
   short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Implicit.py
   short/3D/PyLith/branches/v1.7-trunk/pylith/problems/TimeDependent.py
Log:
Fixed bug introduced in changing name of prestep from linear to elastic.

Modified: short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Explicit.py
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Explicit.py	2012-05-16 23:50:03 UTC (rev 20165)
+++ short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Explicit.py	2012-05-17 00:29:45 UTC (rev 20166)
@@ -242,7 +242,7 @@
     return
 
 
-  def prestepLinear(self, t, dt):
+  def prestepElastic(self, t, dt):
     """
     Hook for doing stuff before advancing time step.
     """

Modified: short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Implicit.py
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Implicit.py	2012-05-16 23:50:03 UTC (rev 20165)
+++ short/3D/PyLith/branches/v1.7-trunk/pylith/problems/Implicit.py	2012-05-17 00:29:45 UTC (rev 20166)
@@ -255,7 +255,7 @@
     return
 
 
-  def prestepLinear(self, t, dt):
+  def prestepElastic(self, t, dt):
     """
     Hook for doing stuff before advancing time step.
     """

Modified: short/3D/PyLith/branches/v1.7-trunk/pylith/problems/TimeDependent.py
===================================================================
--- short/3D/PyLith/branches/v1.7-trunk/pylith/problems/TimeDependent.py	2012-05-16 23:50:03 UTC (rev 20165)
+++ short/3D/PyLith/branches/v1.7-trunk/pylith/problems/TimeDependent.py	2012-05-17 00:29:45 UTC (rev 20166)
@@ -44,7 +44,7 @@
     ## Python object for managing TimeDependent facilities and properties.
     ##
     ## \b Properties
-    ## None
+    ## @li \b elastic_prestep Include a static calculation with elastic behavior before time stepping.
     ##
     ## \b Facilities
     ## @li \b formulation Formulation for solving PDE.
@@ -145,7 +145,7 @@
       for material in self.materials.components():
         material.useElasticBehavior(True)
 
-      self.formulation.prestep(t, dt)
+      self.formulation.prestepElastic(t, dt)
       self._eventLogger.stagePop()
 
       if 0 == comm.rank:



More information about the CIG-COMMITS mailing list