[cig-commits] r17077 - short/3D/PyLith/trunk/examples/greensfns/hex8

willic3 at geodynamics.org willic3 at geodynamics.org
Tue Aug 10 01:27:41 PDT 2010


Author: willic3
Date: 2010-08-10 01:27:41 -0700 (Tue, 10 Aug 2010)
New Revision: 17077

Modified:
   short/3D/PyLith/trunk/examples/greensfns/hex8/gfgen.py
Log:
Fixed problem where fault slip was not being reset to zero.



Modified: short/3D/PyLith/trunk/examples/greensfns/hex8/gfgen.py
===================================================================
--- short/3D/PyLith/trunk/examples/greensfns/hex8/gfgen.py	2010-08-10 08:09:54 UTC (rev 17076)
+++ short/3D/PyLith/trunk/examples/greensfns/hex8/gfgen.py	2010-08-10 08:27:41 UTC (rev 17077)
@@ -248,8 +248,10 @@
       # Modify database values.
       array1[impulse] = self.impulseValue
       if (impulse > 0):
-        array1[impulse -1] = -self.impulseValue
+        array1[impulse - 1] = -self.impulseValue
       
+      if (impulse > 1):
+	array1[impulse - 2] = 0.0
       info1 = {'name': self.impulseType,
                'units': "m",
                'data': array1.flatten()}



More information about the CIG-COMMITS mailing list