[cig-commits] r15656 - short/3D/PyLith/branches/pylith-friction/playpen/friction
brad at geodynamics.org
brad at geodynamics.org
Fri Sep 4 16:41:52 PDT 2009
Author: brad
Date: 2009-09-04 16:41:52 -0700 (Fri, 04 Sep 2009)
New Revision: 15656
Modified:
short/3D/PyLith/branches/pylith-friction/playpen/friction/spring_example.py
Log:
Minor cleanup.
Modified: short/3D/PyLith/branches/pylith-friction/playpen/friction/spring_example.py
===================================================================
--- short/3D/PyLith/branches/pylith-friction/playpen/friction/spring_example.py 2009-09-04 23:40:48 UTC (rev 15655)
+++ short/3D/PyLith/branches/pylith-friction/playpen/friction/spring_example.py 2009-09-04 23:41:52 UTC (rev 15656)
@@ -29,7 +29,7 @@
import numpy
# Spring stiffness [k0, k1, ..., kN]
-k = (1.0, 1.0, 2.0, 1.0, 1.0)
+k = (1.0, 1.0, 1.0, 1.0, 1.0)
# Prescribed displacement, u5
u5 = 2.5
@@ -90,7 +90,6 @@
print "Interation: %d" % iter
dincr = numpy.dot(Ai, residual) # Increment to disp increment.
incr += dincr
- #calcFriction(disp, incr)
residual = reformResidual(disp, incr)
print "Disp(t):",disp
print "Incr(t):",incr
More information about the CIG-COMMITS
mailing list