[cig-commits] r16885 - short/3D/PyLith/trunk/pylith/topology

brad at geodynamics.org brad at geodynamics.org
Thu Jun 3 16:17:20 PDT 2010


Author: brad
Date: 2010-06-03 16:17:20 -0700 (Thu, 03 Jun 2010)
New Revision: 16885

Modified:
   short/3D/PyLith/trunk/pylith/topology/Distributor.py
Log:
Changed debug property to write_partition.

Modified: short/3D/PyLith/trunk/pylith/topology/Distributor.py
===================================================================
--- short/3D/PyLith/trunk/pylith/topology/Distributor.py	2010-06-03 23:16:52 UTC (rev 16884)
+++ short/3D/PyLith/trunk/pylith/topology/Distributor.py	2010-06-03 23:17:20 UTC (rev 16885)
@@ -28,7 +28,7 @@
 
   \b Properties
   @li \b partitioner Name of mesh partitioner {"parmetis", "chaco"}.
-  @li \b debug Write partition information to file.
+  @li \b writePartition Write partition information to file.
   
   \b Facilities
   @li \b writer Data writer for for partition information.
@@ -45,8 +45,8 @@
                                                                     "parmetis"]))
   partitioner.meta['tip'] = "Name of mesh partitioner."
   
-  debug = pyre.inventory.bool("debug", default=False)
-  debug.meta['tip'] = "Write partition information to file."
+  writePartition = pyre.inventory.bool("write_partition", default=False)
+  writePartition.meta['tip'] = "Write partition information to file."
   
   from pylith.meshio.DataWriterVTKMesh import DataWriterVTKMesh
   dataWriter = pyre.inventory.facility("data_writer", factory=DataWriterVTKMesh,
@@ -76,7 +76,7 @@
     newMesh = Mesh(mesh.dimension())
     ModuleDistributor.distribute(newMesh, mesh, self.partitioner)
 
-    if self.debug:
+    if self.writePartition:
       self.dataWriter.initialize(normalizer)
       ModuleDistributor.write(self.dataWriter, newMesh)
 
@@ -92,7 +92,7 @@
     """
     PetscComponent._configure(self)
     self.partitioner = self.inventory.partitioner
-    self.debug = self.inventory.debug
+    self.writePartition = self.inventory.writePartition
     self.dataWriter = self.inventory.dataWriter
     return
 



More information about the CIG-COMMITS mailing list