[cig-commits] r8078 - short/3D/PyLith/trunk/modulesrc/topology
brad at geodynamics.org
brad at geodynamics.org
Thu Oct 4 14:09:34 PDT 2007
Author: brad
Date: 2007-10-04 14:09:34 -0700 (Thu, 04 Oct 2007)
New Revision: 8078
Modified:
short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src
Log:
Fixed bug in setting partitioner.
Modified: short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src
===================================================================
--- short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src 2007-10-04 20:55:53 UTC (rev 8077)
+++ short/3D/PyLith/trunk/modulesrc/topology/topology.pyxe.src 2007-10-04 21:09:34 UTC (rev 8078)
@@ -482,12 +482,10 @@
assert(0 != newMeshVptr);
ALE::Obj<ALE::Mesh>* mesh = (ALE::Obj<ALE::Mesh>*) meshVptr;
ALE::Obj<ALE::Mesh>* newMesh = (ALE::Obj<ALE::Mesh>*) newMeshVptr;
- if (strlen(partitioner) > 0) {
+ if (strlen(partitioner) == 0)
*newMesh = ALE::Distribution<ALE::Mesh>::distributeMesh(*mesh);
- } else {
- *newMesh =
- ALE::Distribution<ALE::Mesh>::distributeMesh(*mesh, 0, partitioner);
- }
+ else
+ *newMesh = ALE::Distribution<ALE::Mesh>::distributeMesh(*mesh, 0, partitioner);
} catch (const std::exception& err) {
PyErr_SetString(PyExc_RuntimeError,
const_cast<char*>(err.what()));
More information about the cig-commits
mailing list