[cig-commits] r11799 - short/3D/PyLith/trunk/playpen/savpres_ss

willic3 at geodynamics.org willic3 at geodynamics.org
Fri Apr 11 14:52:36 PDT 2008


Author: willic3
Date: 2008-04-11 14:52:36 -0700 (Fri, 11 Apr 2008)
New Revision: 11799

Modified:
   short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py
Log:
Changed header and filenames so times are referenced to the beginning of a
cycle.


Modified: short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py
===================================================================
--- short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py	2008-04-11 21:36:44 UTC (rev 11798)
+++ short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py	2008-04-11 21:52:36 UTC (rev 11799)
@@ -305,7 +305,7 @@
 
     for cycle in range(self.numberCycles):
       fileBaseCycle = fileBase + "_c" + str(cycle) + "_t"
-      time = cycle * self.numberSteps * self.deltaT
+      time = 0.0
 
       for step in range(self.numberSteps + 1):
         VTKFile = fileBaseCycle + str(time) + ".vtk"
@@ -353,7 +353,7 @@
     head = "X,Y,Z"
     for cycle in range(self.numberCycles):
       cycleHead = "c" + str(cycle) + "_t"
-      time = cycle * self.numberSteps * self.deltaT
+      time = 0.0
 
       for step in range(self.numberSteps + 1):
         head += "," + cycleHead + str(time)



More information about the cig-commits mailing list