[cig-commits] r13951 - short/3D/PyLith/branches/pylith-swig/modulesrc/topology

brad at geodynamics.org brad at geodynamics.org
Sun Jan 25 15:10:17 PST 2009


Author: brad
Date: 2009-01-25 15:10:17 -0800 (Sun, 25 Jan 2009)
New Revision: 13951

Modified:
   short/3D/PyLith/branches/pylith-swig/modulesrc/topology/Mesh.i
Log:
Improved Mesh object- added communicator and debug flag as members; added createSieveMesh().

Modified: short/3D/PyLith/branches/pylith-swig/modulesrc/topology/Mesh.i
===================================================================
--- short/3D/PyLith/branches/pylith-swig/modulesrc/topology/Mesh.i	2009-01-25 23:10:06 UTC (rev 13950)
+++ short/3D/PyLith/branches/pylith-swig/modulesrc/topology/Mesh.i	2009-01-25 23:10:17 UTC (rev 13951)
@@ -26,17 +26,26 @@
       // PUBLIC METHODS /////////////////////////////////////////////////
     public :
 
-      /** Default constructor.
+      /// Default constructor.
+      Mesh(void);
+
+      /** Constructor with dimension and communicator.
        *
+       * @param dim Dimension associated with mesh cells.
        * @param comm MPI communicator for mesh.
-       * @param dim Dimension associated with mesh cells.
        */
-      Mesh(const MPI_Comm& comm =PETSC_COMM_WORLD,
-	   const int dim =3); 
+      Mesh(const int dim,
+	   const MPI_Comm& comm =PETSC_COMM_WORLD); 
 
       /// Default destructor
       ~Mesh(void);
-
+      
+      /** Create Sieve mesh.
+       *
+       * @param dim Dimension associated with mesh cells.
+       */
+      void createSieveMesh(const int dim=3); 
+      
       /** Set coordinate system.
        *
        * @param cs Coordinate system.
@@ -67,6 +76,12 @@
        */
       int dimension(void) const;
       
+      /** Set MPI communicator associated with mesh.
+       *
+       * @param value MPI communicator.
+       */
+      void comm(const MPI_Comm value);
+    
       /** Get MPI communicator associated with mesh.
        *
        * @returns MPI communicator.



More information about the CIG-COMMITS mailing list