[cig-commits] r16586 - in short/3D/PyLith/trunk/pylith: problems topology

brad at geodynamics.org brad at geodynamics.org
Tue Apr 27 17:09:17 PDT 2010


Author: brad
Date: 2010-04-27 17:09:17 -0700 (Tue, 27 Apr 2010)
New Revision: 16586

Modified:
   short/3D/PyLith/trunk/pylith/problems/Formulation.py
   short/3D/PyLith/trunk/pylith/topology/JacobianViewer.py
Log:
Fixed bugs in writing Jacobian.

Modified: short/3D/PyLith/trunk/pylith/problems/Formulation.py
===================================================================
--- short/3D/PyLith/trunk/pylith/problems/Formulation.py	2010-04-27 23:08:36 UTC (rev 16585)
+++ short/3D/PyLith/trunk/pylith/problems/Formulation.py	2010-04-28 00:09:17 UTC (rev 16586)
@@ -479,7 +479,7 @@
     self._eventLogger.stagePop()
 
     if self.viewJacobian:
-      self.jacobianViewer.write(self.jacobian, t, self.mesh.comm())
+      self.jacobianViewer.view(self.jacobian, t, self.mesh.comm())
 
     self._debug.log(resourceUsageString())
     return

Modified: short/3D/PyLith/trunk/pylith/topology/JacobianViewer.py
===================================================================
--- short/3D/PyLith/trunk/pylith/topology/JacobianViewer.py	2010-04-27 23:08:36 UTC (rev 16585)
+++ short/3D/PyLith/trunk/pylith/topology/JacobianViewer.py	2010-04-28 00:09:17 UTC (rev 16586)
@@ -95,14 +95,14 @@
     return
 
 
-  def _filenameStamped(self, t):
+  def _filenameStamp(self, t):
     """
     Create filename by extracting basename and adding a time stamp.
     """
-    timeStamp = self.timeFormat % (t.value/self.jacobianTimeConstant.value)
+    timeStamp = self.timeFormat % (t/self.timeConstant.value)
     basename = self.filename
     if basename.endswith(".mat"):
-      basename = base[0:len(base)-4]
+      basename = basename[0:len(basename)-4]
     filename = basename + "_t" + timeStamp + ".mat"
     return filename
 



More information about the CIG-COMMITS mailing list