[cig-commits] r19972 - short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott
brad at geodynamics.org
brad at geodynamics.org
Mon Apr 23 16:13:21 PDT 2012
Author: brad
Date: 2012-04-23 16:13:21 -0700 (Mon, 23 Apr 2012)
New Revision: 19972
Modified:
short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/calc_analytic.py
Log:
Fixed typos.
Modified: short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/calc_analytic.py
===================================================================
--- short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/calc_analytic.py 2012-04-23 22:50:20 UTC (rev 19971)
+++ short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/calc_analytic.py 2012-04-23 23:13:21 UTC (rev 19972)
@@ -333,7 +333,7 @@
Write solution a text file.
"""
- if solutionType == "dispacement":
+ if solutionType == "displacement":
filename = self.dispfilename
solution = self.solutionUTot
else:
@@ -349,7 +349,7 @@
f.write("nsteps = %d\n" % (self.numberSteps+1,))
f.write("npoints = %d\n" % self.numberPoints)
data = solution.reshape( (self.numberCycles,
- (self.numberSteps*1)*self.numberPoints) )
+ (self.numberSteps+1)*self.numberPoints) )
numpy.savetxt(f, data, fmt="%14.6e")
f.close()
More information about the CIG-COMMITS
mailing list