[cig-commits] [commit] baagaard/add-release-2.1.0, baagaard/dynrup-new-lagrange, baagaard/feature-output-station-names, baagaard/feature-progress-monitor, baagaard/fix-custom-faultpc, baagaard/fix-faults-intersect, knepley/feature-petsc-fe, knepley/upgrade-petsc-master, master: Distribution: Fixed interface to DMPlexDistribute() (892ada1)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 15:46:30 PST 2014


Repository : https://github.com/geodynamics/pylith

On branches: baagaard/add-release-2.1.0,baagaard/dynrup-new-lagrange,baagaard/feature-output-station-names,baagaard/feature-progress-monitor,baagaard/fix-custom-faultpc,baagaard/fix-faults-intersect,knepley/feature-petsc-fe,knepley/upgrade-petsc-master,master
Link       : https://github.com/geodynamics/pylith/compare/f33c75b19fd60eedb2a3405db76a1fee333bb1d7...5b6d812b1612809fea3bd331c4e5af98c25a536a

>---------------------------------------------------------------

commit 892ada1768d84260fa6d939de239cf8ba531913b
Author: Matthew G. Knepley <knepley at gmail.com>
Date:   Tue Oct 14 11:02:16 2014 -0500

    Distribution: Fixed interface to DMPlexDistribute()


>---------------------------------------------------------------

892ada1768d84260fa6d939de239cf8ba531913b
 libsrc/pylith/topology/Distributor.cc | 5 ++---
 libsrc/pylith/topology/Distributor.hh | 4 +---
 modulesrc/topology/Distributor.i      | 3 +--
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/libsrc/pylith/topology/Distributor.cc b/libsrc/pylith/topology/Distributor.cc
index e217c14..c5df8b8 100644
--- a/libsrc/pylith/topology/Distributor.cc
+++ b/libsrc/pylith/topology/Distributor.cc
@@ -50,8 +50,7 @@ pylith::topology::Distributor::~Distributor(void)
 // Distribute mesh among processors.
 void
 pylith::topology::Distributor::distribute(topology::Mesh* const newMesh,
-					  const topology::Mesh& origMesh,
-					  const char* partitioner)
+					  const topology::Mesh& origMesh)
 { // distribute
   PYLITH_METHOD_BEGIN;
   
@@ -60,7 +59,7 @@ pylith::topology::Distributor::distribute(topology::Mesh* const newMesh,
   journal::info_t info("distributor");
 
   PetscDM newDM = NULL;
-  PetscErrorCode err = DMPlexDistribute(origMesh.dmMesh(), partitioner, 0, NULL, &newDM);PYLITH_CHECK_ERROR(err);
+  PetscErrorCode err = DMPlexDistribute(origMesh.dmMesh(), 0, NULL, &newDM);PYLITH_CHECK_ERROR(err);
   newMesh->dmMesh(newDM);
 
   PYLITH_METHOD_END;
diff --git a/libsrc/pylith/topology/Distributor.hh b/libsrc/pylith/topology/Distributor.hh
index 851d0f7..3d656df 100644
--- a/libsrc/pylith/topology/Distributor.hh
+++ b/libsrc/pylith/topology/Distributor.hh
@@ -49,12 +49,10 @@ public :
    *
    * @param newMesh Distributed mesh (result).
    * @param origMesh Mesh to distribute.
-   * @param partitioner Name of partitioner to use in distributing mesh.
    */
   static
   void distribute(topology::Mesh* const newMesh,
-		  const topology::Mesh& origMesh,
-		  const char* partitioner);
+		  const topology::Mesh& origMesh);
 
   /** Write partitioning info for distributed mesh.
    *
diff --git a/modulesrc/topology/Distributor.i b/modulesrc/topology/Distributor.i
index b8008e9..12c2345 100644
--- a/modulesrc/topology/Distributor.i
+++ b/modulesrc/topology/Distributor.i
@@ -45,8 +45,7 @@ namespace pylith {
        */
       static
       void distribute(pylith::topology::Mesh* const newMesh,
-		      const pylith::topology::Mesh& origMesh,
-		      const char* partitioner);
+		      const pylith::topology::Mesh& origMesh);
 
       /** Write partitioning info for distributed mesh.
        *



More information about the CIG-COMMITS mailing list