[cig-commits] r17060 - short/3D/PyLith/branches/v1.5-stable/pylith/faults

brad at geodynamics.org brad at geodynamics.org
Sun Aug 1 13:34:34 PDT 2010


Author: brad
Date: 2010-08-01 13:34:33 -0700 (Sun, 01 Aug 2010)
New Revision: 17060

Modified:
   short/3D/PyLith/branches/v1.5-stable/pylith/faults/Fault.py
   short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveDyn.py
   short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveKin.py
Log:
Remove superfluous Fault.poststep() to avoid multiple calls to updateStateVars per time step.

Modified: short/3D/PyLith/branches/v1.5-stable/pylith/faults/Fault.py
===================================================================
--- short/3D/PyLith/branches/v1.5-stable/pylith/faults/Fault.py	2010-08-01 16:56:02 UTC (rev 17059)
+++ short/3D/PyLith/branches/v1.5-stable/pylith/faults/Fault.py	2010-08-01 20:34:33 UTC (rev 17060)
@@ -159,19 +159,6 @@
     return
 
 
-  def poststep(self, t, dt, fields):
-    """
-    Hook for doing stuff after advancing time step.
-    """
-    logEvent = "%spoststep" % self._loggingPrefix
-    self._eventLogger.eventBegin(logEvent)
-
-    self.updateStateVars(t, fields)
-
-    self._eventLogger.eventEnd(logEvent)
-    return
-
-
   def writeData(self, t, fields):
     """
     Write data at time t.

Modified: short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveDyn.py
===================================================================
--- short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveDyn.py	2010-08-01 16:56:02 UTC (rev 17059)
+++ short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveDyn.py	2010-08-01 20:34:33 UTC (rev 17060)
@@ -143,20 +143,6 @@
     return
 
 
-  def poststep(self, t, dt, fields):
-    """
-    Hook for doing stuff after advancing time step.
-    """
-    logEvent = "%spoststep" % self._loggingPrefix
-    self._eventLogger.eventBegin(logEvent)
-
-    Integrator.poststep(self, t, dt, fields)
-    FaultCohesive.poststep(self, t, dt, fields)
-
-    self._eventLogger.eventEnd(logEvent)
-    return
-
-
   def getVertexField(self, name, fields=None):
     """
     Get vertex field.

Modified: short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveKin.py
===================================================================
--- short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveKin.py	2010-08-01 16:56:02 UTC (rev 17059)
+++ short/3D/PyLith/branches/v1.5-stable/pylith/faults/FaultCohesiveKin.py	2010-08-01 20:34:33 UTC (rev 17060)
@@ -155,20 +155,6 @@
     return
 
 
-  def poststep(self, t, dt, fields):
-    """
-    Hook for doing stuff after advancing time step.
-    """
-    logEvent = "%spoststep" % self._loggingPrefix
-    self._eventLogger.eventBegin(logEvent)
-
-    Integrator.poststep(self, t, dt, fields)
-    FaultCohesive.poststep(self, t, dt, fields)
-
-    self._eventLogger.eventEnd(logEvent)
-    return
-
-
   def getVertexField(self, name, fields=None):
     """
     Get vertex field.



More information about the CIG-COMMITS mailing list