[cig-commits] r4529 -
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d
willic3 at geodynamics.org
willic3 at geodynamics.org
Thu Sep 14 10:36:53 PDT 2006
Author: willic3
Date: 2006-09-14 10:36:53 -0700 (Thu, 14 Sep 2006)
New Revision: 4529
Modified:
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Pylith3d_scan.py
Log:
Added options to get partitioner from command-line.
Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py 2006-09-14 17:36:16 UTC (rev 4528)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py 2006-09-14 17:36:53 UTC (rev 4529)
@@ -41,7 +41,7 @@
pl3dsetup = self.inventory.setup
import pylith3d
pylith3d.PetscInitialize()
- self.inventory.scanner.inventory.fileRoot, mesh = pylith3d.processMesh(self.inventory.scanner.inventory.fileRoot, self.inventory.scanner.inventory.interpolateMesh)
+ self.inventory.scanner.inventory.fileRoot, mesh = pylith3d.processMesh(self.inventory.scanner.inventory.fileRoot, self.inventory.scanner.inventory.interpolateMesh, self.inventory.scanner.inventory.partitioner)
try:
pl3dsetup.initialize(self.inventory.scanner)
except self.inventory.scanner.CanNotOpenInputOutputFilesError, error:
Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Pylith3d_scan.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Pylith3d_scan.py 2006-09-14 17:36:16 UTC (rev 4528)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Pylith3d_scan.py 2006-09-14 17:36:53 UTC (rev 4529)
@@ -762,6 +762,10 @@
interpolateMesh = pyre.inventory.bool("interpolateMesh",default=False)
interpolateMesh.meta['tip'] = "Create intermediate mesh entities, such as edges and faces."
+ partitioner = pyre.inventory.str("partitioner",default="chaco")
+ partitioner.validator = pyre.inventory.choice(["chaco","parmetis"])
+ partitioner.meta['tip'] = "Partitioner (chaco, parmetis)."
+
# Unused option flags.
autoRotateSlipperyNodes = pyre.inventory.bool("autoRotateSlipperyNodes",default=True)
autoRotateSlipperyNodes.meta['tip'] = "Whether to performa automatic rotation for slippery nodes (presently unused)."
More information about the cig-commits
mailing list