[cig-commits] r12918 - short/3D/PyLith/trunk/libsrc/topology

brad at geodynamics.org brad at geodynamics.org
Fri Sep 19 09:25:12 PDT 2008


Author: brad
Date: 2008-09-19 09:25:12 -0700 (Fri, 19 Sep 2008)
New Revision: 12918

Modified:
   short/3D/PyLith/trunk/libsrc/topology/Distributor.cc
Log:
Fixed bug in Distributor. Added #ifdefs to reflect that Chaco and ParMetis are optional.

Modified: short/3D/PyLith/trunk/libsrc/topology/Distributor.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/Distributor.cc	2008-09-19 11:55:19 UTC (rev 12917)
+++ short/3D/PyLith/trunk/libsrc/topology/Distributor.cc	2008-09-19 16:25:12 UTC (rev 12918)
@@ -45,10 +45,14 @@
 { // distribute
   if (0 == strcasecmp(partitioner, "")) {
     distribute_private<ALE::DistributionNew<Mesh> >(newMesh, origMesh);
+#if defined(PETSC_HAVE_CHACO)
   } else if (0 == strcasecmp(partitioner, "chaco")) {
     distribute_private<ALE::DistributionNew<Mesh, ALE::Partitioner<ALE::Chaco::Partitioner<> > > >(newMesh, origMesh);
+#endif
+#if defined(PETSC_HAVE_PARMETIS)
   } else if (0 == strcasecmp(partitioner, "parmetis")) {
     distribute_private<ALE::DistributionNew<Mesh, ALE::Partitioner<ALE::ParMetis::Partitioner<> > > >(newMesh, origMesh);
+#endif
   } else {
     std::cout << "ERROR: Using default partitioner instead of unknown partitioner " << partitioner << std::endl;
     distribute_private<ALE::DistributionNew<Mesh> >(newMesh, origMesh);



More information about the cig-commits mailing list