[cig-commits] r17919 - short/3D/PyLith/trunk/playpen/postproc

willic3 at geodynamics.org willic3 at geodynamics.org
Sun Feb 20 13:04:01 PST 2011


Author: willic3
Date: 2011-02-20 13:04:01 -0800 (Sun, 20 Feb 2011)
New Revision: 17919

Modified:
   short/3D/PyLith/trunk/playpen/postproc/stressinfo.py
Log:
Fixed indexing problems.


Modified: short/3D/PyLith/trunk/playpen/postproc/stressinfo.py
===================================================================
--- short/3D/PyLith/trunk/playpen/postproc/stressinfo.py	2011-02-20 16:49:21 UTC (rev 17918)
+++ short/3D/PyLith/trunk/playpen/postproc/stressinfo.py	2011-02-20 21:04:01 UTC (rev 17919)
@@ -105,8 +105,8 @@
 
 
   def main(self):
-    import pdb
-    pdb.set_trace()
+    # import pdb
+    # pdb.set_trace()
     self._readVtkFile()
     self._getStressInfo()
     self._writeVtkFile()
@@ -199,13 +199,13 @@
     for point in xrange(self.numTensorPoints):
       tensor = self.tensorSorted[point, :]
       pressure, devInvariant2 = self._compStressInfo(tensor)
-      self.pressure[point,:] = pressure
-      self.devInvariant2[point,:] = devInvariant2
+      self.pressure[point] = pressure
+      self.devInvariant2[point] = devInvariant2
       dpPlasPresTerm = self.alphaYield * 3.0 * pressure
-      self.dpPlasPresTerm[point,:] = dpPlasPresTerm
+      self.dpPlasPresTerm[point] = dpPlasPresTerm
       dpPlasStressTerm = dpPlasPresTerm + devInvariant2
-      self.dpPlasStressTerm[point,:] = dpPlasStressTerm
-      self.dpPlasYieldFunc[point,:] = dpPlasStressTerm - self.cohesion
+      self.dpPlasStressTerm[point] = dpPlasStressTerm
+      self.dpPlasYieldFunc[point] = dpPlasStressTerm - self.cohesion
 
     return
   



More information about the CIG-COMMITS mailing list