[cig-commits] r9019 - short/3D/PyLith/trunk/pylith/meshio
brad at geodynamics.org
brad at geodynamics.org
Mon Jan 14 14:10:22 PST 2008
Author: brad
Date: 2008-01-14 14:10:22 -0800 (Mon, 14 Jan 2008)
New Revision: 9019
Modified:
short/3D/PyLith/trunk/pylith/meshio/OutputManager.py
Log:
Added default mapping of field names to section labels for output.
Modified: short/3D/PyLith/trunk/pylith/meshio/OutputManager.py
===================================================================
--- short/3D/PyLith/trunk/pylith/meshio/OutputManager.py 2008-01-14 21:54:50 UTC (rev 9018)
+++ short/3D/PyLith/trunk/pylith/meshio/OutputManager.py 2008-01-14 22:10:22 UTC (rev 9019)
@@ -110,7 +110,7 @@
self._istep = None
self.vertexFields = None
self.cellFields = None
- self._fieldTranslator = None
+ self._fieldTranslator = copyTranslator
return
@@ -283,8 +283,8 @@
self.skip = self.inventory.skip
self.coordsys = self.inventory.coordsys
self.writer = self.inventory.writer
- self.vertexFieldsNames = self.inventory.vertexFields
- self.cellFieldsNames = self.inventory.cellFields
+ self.vertexFieldNames = self.inventory.vertexFields
+ self.cellFieldNames = self.inventory.cellFields
self.vertexFilter = self.inventory.vertexFilter
self.cellFilter = self.inventory.cellFilter
return
@@ -319,11 +319,10 @@
self.vertexFields = {}
self.cellFields = {}
- if None != self._fieldTranslator: # TEMPORARY
- for name in self.vertexFieldNames:
- self.vertexFields[name] = self._fieldTranslator(name)
- for name in self.cellFieldNames:
- self.cellFields[name] = self._fieldTranslator(name)
+ for name in self.vertexFieldNames:
+ self.vertexFields[name] = self._fieldTranslator(name)
+ for name in self.cellFieldNames:
+ self.cellFields[name] = self._fieldTranslator(name)
return
@@ -362,4 +361,10 @@
return OutputManager()
+# MISCELLANEOUS ////////////////////////////////////////////////////////
+
+def copyTranslator(name):
+ return name
+
+
# End of file
More information about the cig-commits
mailing list