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

brad at geodynamics.org brad at geodynamics.org
Thu Mar 20 13:13:29 PDT 2008


Author: brad
Date: 2008-03-20 13:13:29 -0700 (Thu, 20 Mar 2008)
New Revision: 11494

Modified:
   short/3D/PyLith/trunk/pylith/meshio/OutputManager.py
Log:
Fixed bug. Don't write output if no fields are requested.

Modified: short/3D/PyLith/trunk/pylith/meshio/OutputManager.py
===================================================================
--- short/3D/PyLith/trunk/pylith/meshio/OutputManager.py	2008-03-20 20:01:06 UTC (rev 11493)
+++ short/3D/PyLith/trunk/pylith/meshio/OutputManager.py	2008-03-20 20:13:29 UTC (rev 11494)
@@ -237,7 +237,9 @@
     logEvent = "%swriteData" % self._loggingPrefix
     self._logger.eventBegin(logEvent)    
 
-    if self._checkWrite(t):
+    if self._checkWrite(t) and \
+           ( len(self.vertexInfoFields) > 0 or \
+             len(self.cellInfoFields) ) > 0:
 
       (mesh, label, labelId) = self.dataProvider.getDataMesh()
       self.cppHandle.openTimeStep(t.value,



More information about the cig-commits mailing list