[cig-commits] r11811 - short/3D/PyLith/trunk/playpen/savpres_ss
willic3 at geodynamics.org
willic3 at geodynamics.org
Mon Apr 14 18:33:26 PDT 2008
Author: willic3
Date: 2008-04-14 18:33:25 -0700 (Mon, 14 Apr 2008)
New Revision: 11811
Modified:
short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py
Log:
Minor edits.
Modified: short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py
===================================================================
--- short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py 2008-04-14 19:28:38 UTC (rev 11810)
+++ short/3D/PyLith/trunk/playpen/savpres_ss/savpres_ss.py 2008-04-15 01:33:25 UTC (rev 11811)
@@ -163,7 +163,7 @@
Create array of points for output along with series terms
for each point.
"""
- self.points = numpy.zeros((self.numberPoints), dtype=float)
+ self.points = numpy.zeros(self.numberPoints, dtype=float)
self.pointCoeff = numpy.zeros((self.numberPoints, self.numberTerms),
dtype=float)
@@ -200,7 +200,6 @@
for cycle in range(self.numberCycles):
time = cycle * self.numberSteps * self.deltaT
tau = time * self.tauFac
- tauSub = cycle * self.tau0
if cycle > 0:
solutionU2[cycle, :, :] += solutionU2[cycle - 1, :, :]
@@ -312,7 +311,7 @@
f = open(VTKFile, 'w')
self._writeVTK(f, cycle, step)
f.close()
- time = time + self.deltaT
+ time += self.deltaT
return
@@ -357,7 +356,7 @@
for step in range(self.numberSteps + 1):
head += "," + cycleHead + str(time)
- time = time + self.deltaT
+ time += self.deltaT
f.write('%s\n' % head)
y = 0.0
More information about the cig-commits
mailing list