[cig-commits] r16474 - in short/3D/PyLith/trunk: . pylith/topology

brad at geodynamics.org brad at geodynamics.org
Wed Mar 31 09:52:14 PDT 2010


Author: brad
Date: 2010-03-31 09:52:14 -0700 (Wed, 31 Mar 2010)
New Revision: 16474

Modified:
   short/3D/PyLith/trunk/TODO
   short/3D/PyLith/trunk/pylith/topology/MeshImporter.py
Log:
Started working on user interface to mesh reordering.

Modified: short/3D/PyLith/trunk/TODO
===================================================================
--- short/3D/PyLith/trunk/TODO	2010-03-31 15:24:03 UTC (rev 16473)
+++ short/3D/PyLith/trunk/TODO	2010-03-31 16:52:14 UTC (rev 16474)
@@ -4,6 +4,10 @@
 
 MAIN PRIORITIES
 
+* Mesh reordering
+
+  Make optional in MeshImporter.py.
+
 * Better preconditioning
   + Need settings for Schur complement
 

Modified: short/3D/PyLith/trunk/pylith/topology/MeshImporter.py
===================================================================
--- short/3D/PyLith/trunk/pylith/topology/MeshImporter.py	2010-03-31 15:24:03 UTC (rev 16473)
+++ short/3D/PyLith/trunk/pylith/topology/MeshImporter.py	2010-03-31 16:52:14 UTC (rev 16474)
@@ -37,7 +37,7 @@
     ## Python object for managing MeshImporter facilities and properties.
     ##
     ## \b Properties
-    ## @li None
+    ## @li reorder_mesh Reorder mesh using reverse Cuthill-McKee if true.
     ##
     ## \b Facilities
     ## @li \b reader Mesh reader.
@@ -46,6 +46,9 @@
 
     import pyre.inventory
 
+    reorderMesh = pyre.inventory.bool("reorder_mesh", default=True)
+    reorderMesh.meta['tip'] = "Reorder mesh using reverse Cuthill-McKee."
+
     from pylith.meshio.MeshIOAscii import MeshIOAscii
     reader = pyre.inventory.facility("reader", family="mesh_io",
                                        factory=MeshIOAscii)
@@ -90,6 +93,8 @@
     if self.debug:
       mesh.view("Finite-element mesh.")
 
+    # :TODO: Reorder mesh
+
     # Adjust topology
     self._debug.log(resourceUsageString())
     self._info.log("Adjusting topology.")



More information about the CIG-COMMITS mailing list