[cig-commits] r16602 - short/3D/PyLith/trunk/pylith/meshio

brad at geodynamics.org brad at geodynamics.org
Thu Apr 29 17:28:51 PDT 2010


Author: brad
Date: 2010-04-29 17:28:50 -0700 (Thu, 29 Apr 2010)
New Revision: 16602

Modified:
   short/3D/PyLith/trunk/pylith/meshio/OutputSoln.py
   short/3D/PyLith/trunk/pylith/meshio/OutputSolnSubset.py
Log:
Fixed bug in getting velocity for output.

Modified: short/3D/PyLith/trunk/pylith/meshio/OutputSoln.py
===================================================================
--- short/3D/PyLith/trunk/pylith/meshio/OutputSoln.py	2010-04-29 23:58:37 UTC (rev 16601)
+++ short/3D/PyLith/trunk/pylith/meshio/OutputSoln.py	2010-04-30 00:28:50 UTC (rev 16602)
@@ -102,6 +102,8 @@
     field = None
     if name == "displacement":
       field = fields.get("disp(t)")
+    elif name == "velocity":
+      field = fields.get("velocity(t)")
     else:
       raise ValueError, "Vertex field '%s' not available." % name
     return field

Modified: short/3D/PyLith/trunk/pylith/meshio/OutputSolnSubset.py
===================================================================
--- short/3D/PyLith/trunk/pylith/meshio/OutputSolnSubset.py	2010-04-29 23:58:37 UTC (rev 16601)
+++ short/3D/PyLith/trunk/pylith/meshio/OutputSolnSubset.py	2010-04-30 00:28:50 UTC (rev 16602)
@@ -119,6 +119,8 @@
     fieldType = None
     if name == "displacement":
       field = fields.get("disp(t)")
+    elif name == "velocity":
+      field = fields.get("velocity(t)")
     else:
       raise ValueError, "Vertex field '%s' not available." % name
     return field



More information about the CIG-COMMITS mailing list