[cig-commits] r8058 - short/3D/PyLith/trunk/pylith/problems
brad at geodynamics.org
brad at geodynamics.org
Fri Sep 28 14:13:29 PDT 2007
Author: brad
Date: 2007-09-28 14:13:29 -0700 (Fri, 28 Sep 2007)
New Revision: 8058
Modified:
short/3D/PyLith/trunk/pylith/problems/Formulation.py
short/3D/PyLith/trunk/pylith/problems/Implicit.py
Log:
Removed duplicate resourceUsage calls.
Modified: short/3D/PyLith/trunk/pylith/problems/Formulation.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Formulation.py 2007-09-28 21:07:26 UTC (rev 8057)
+++ short/3D/PyLith/trunk/pylith/problems/Formulation.py 2007-09-28 21:13:29 UTC (rev 8058)
@@ -124,7 +124,6 @@
self._debug.log(resourceUsageString())
self._info.log("Pre-initializing interior interfaces.")
- self._debug.log(resourceUsageString())
for ic in interfaceConditions.bin:
ic.preinitialize(mesh)
foundType = False
@@ -173,20 +172,17 @@
self._debug.log(resourceUsageString())
self._info.log("Initializing constraints.")
- self._debug.log(resourceUsageString())
for constraint in self.constraints:
constraint.initialize()
self._debug.log(resourceUsageString())
self._info.log("Setting up solution output.")
- self._debug.log(resourceUsageString())
for output in self.output.bin:
output.open(self.mesh)
output.writeTopology()
self._debug.log(resourceUsageString())
self._info.log("Creating solution field.")
- self._debug.log(resourceUsageString())
solnName = self.solnField['name']
self.fields.addReal(solnName)
self.fields.solutionField(solnName)
Modified: short/3D/PyLith/trunk/pylith/problems/Implicit.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Implicit.py 2007-09-28 21:07:26 UTC (rev 8057)
+++ short/3D/PyLith/trunk/pylith/problems/Implicit.py 2007-09-28 21:13:29 UTC (rev 8058)
@@ -96,12 +96,10 @@
self._debug.log(resourceUsageString())
self._info.log("Creating Jacobian matrix.")
- self._debug.log(resourceUsageString())
self.jacobian = self.mesh.createMatrix(self.fields.getSolution())
self._debug.log(resourceUsageString())
self._info.log("Initializing solver.")
- self._debug.log(resourceUsageString())
self.solver.initialize(self.mesh, self.fields.getSolution())
self._debug.log(resourceUsageString())
@@ -148,10 +146,7 @@
if integrator.needNewJacobian():
needNewJacobian = True
if needNewJacobian:
- self._info.log("Reforming Jacobian.")
- self._debug.log(resourceUsageString())
self._reformJacobian(t, dt)
- self._debug.log(resourceUsageString())
return
@@ -173,13 +168,11 @@
self._debug.log(resourceUsageString())
self._info.log("Completing residual.")
- self._debug.log(resourceUsageString())
bindings.completeSection(self.mesh.cppHandle, residual)
self._debug.log(resourceUsageString())
import pylith.utils.petsc as petsc
self._info.log("Solving equations.")
- self._debug.log(resourceUsageString())
self.solver.solve(dispIncr, self.jacobian, residual)
self._debug.log(resourceUsageString())
return
@@ -210,7 +203,6 @@
if 0 == self._istep and (t + dt) < totalTime:
self._info.log("Switching from total field solution to incremental " \
"field solution.")
- self._debug.log(resourceUsageString())
for constraint in self.constraints:
constraint.useSolnIncr(True)
for integrator in self.integrators:
More information about the cig-commits
mailing list