[cig-commits] r8043 - short/3D/PyLith/trunk/pylith/problems
brad at geodynamics.org
brad at geodynamics.org
Thu Sep 27 15:41:55 PDT 2007
Author: brad
Date: 2007-09-27 15:41:54 -0700 (Thu, 27 Sep 2007)
New Revision: 8043
Modified:
short/3D/PyLith/trunk/pylith/problems/Implicit.py
Log:
Added some more display of resource usage.
Modified: short/3D/PyLith/trunk/pylith/problems/Implicit.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Implicit.py 2007-09-27 22:13:12 UTC (rev 8042)
+++ short/3D/PyLith/trunk/pylith/problems/Implicit.py 2007-09-27 22:41:54 UTC (rev 8043)
@@ -143,7 +143,10 @@
"""
Advance to next time step.
"""
+ from pylith.utils.profiling import resourceUsageString
+
self._info.log("Integrating residual term in operator.")
+ self._debug.log(resourceUsageString())
residual = self.fields.getReal("residual")
dispIncr = self.fields.getReal("dispIncr")
import pylith.topology.topology as bindings
@@ -155,9 +158,12 @@
self._info.log("Completing residual.")
bindings.completeSection(self.mesh.cppHandle, residual)
+ self._debug.log(resourceUsageString())
+
import pylith.utils.petsc as petsc
self._info.log("Solving equations.")
self.solver.solve(dispIncr, self.jacobian, residual)
+ self._debug.log(resourceUsageString())
return
@@ -201,6 +207,9 @@
Set members based using inventory.
"""
Formulation._configure(self)
+
+ import journal
+ self._debug = journal.debug(self.name)
return
More information about the cig-commits
mailing list