[cig-commits] r12384 - in short/3D/PyLith/trunk: examples/3d/hex8 pylith/problems
brad at geodynamics.org
brad at geodynamics.org
Mon Jul 7 10:07:57 PDT 2008
Author: brad
Date: 2008-07-07 10:07:57 -0700 (Mon, 07 Jul 2008)
New Revision: 12384
Modified:
short/3D/PyLith/trunk/examples/3d/hex8/pylithapp.cfg
short/3D/PyLith/trunk/pylith/problems/Formulation.py
Log:
Bugfix. Added initialization of time step manager in formulation.
Modified: short/3D/PyLith/trunk/examples/3d/hex8/pylithapp.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/pylithapp.cfg 2008-07-07 15:46:21 UTC (rev 12383)
+++ short/3D/PyLith/trunk/examples/3d/hex8/pylithapp.cfg 2008-07-07 17:07:57 UTC (rev 12384)
@@ -37,7 +37,6 @@
[pylithapp.timedependent.formulation.time_step]
# Define the total time for the simulation and the default time step size.
total_time = 0.0*s ; total time of simulation
-dt = 1.0*s ; time step
# ----------------------------------------------------------------------
# materials
Modified: short/3D/PyLith/trunk/pylith/problems/Formulation.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Formulation.py 2008-07-07 15:46:21 UTC (rev 12383)
+++ short/3D/PyLith/trunk/pylith/problems/Formulation.py 2008-07-07 17:07:57 UTC (rev 12384)
@@ -101,6 +101,8 @@
self._setupLogging()
logEvent = "%spreinit" % self._loggingPrefix
self._logger.eventBegin(logEvent)
+
+ self.timeStep.preinitialize()
self.mesh = mesh
self.integrators = []
@@ -126,6 +128,8 @@
logEvent = "%sverify" % self._loggingPrefix
self._logger.eventBegin(logEvent)
+ self.timeStep.verifyConfiguration()
+
for integrator in self.integrators:
integrator.verifyConfiguration()
for constraint in self.constraints:
@@ -144,6 +148,8 @@
logEvent = "%sinit" % self._loggingPrefix
self._logger.eventBegin(logEvent)
+ self.timeStep.initialize()
+
numTimeSteps = self.timeStep.numTimeSteps()
totalTime = self.timeStep.totalTime
More information about the cig-commits
mailing list