[cig-commits] r14849 - short/3D/PyLith/branches/pylith-swig/pylith/topology
brad at geodynamics.org
brad at geodynamics.org
Sat May 2 13:36:12 PDT 2009
Author: brad
Date: 2009-05-02 13:36:11 -0700 (Sat, 02 May 2009)
New Revision: 14849
Modified:
short/3D/PyLith/branches/pylith-swig/pylith/topology/Distributor.py
short/3D/PyLith/branches/pylith-swig/pylith/topology/Mesh.py
short/3D/PyLith/branches/pylith-swig/pylith/topology/MeshImporter.py
Log:
Fixed some small bugs related to distribution.
Modified: short/3D/PyLith/branches/pylith-swig/pylith/topology/Distributor.py
===================================================================
--- short/3D/PyLith/branches/pylith-swig/pylith/topology/Distributor.py 2009-05-02 20:18:42 UTC (rev 14848)
+++ short/3D/PyLith/branches/pylith-swig/pylith/topology/Distributor.py 2009-05-02 20:36:11 UTC (rev 14849)
@@ -73,7 +73,7 @@
self._logger.eventBegin(logEvent)
from pylith.topology.Mesh import Mesh
- newMesh = Mesh()
+ newMesh = Mesh(mesh.dimension())
ModuleDistributor.distribute(newMesh, mesh, self.partitioner)
if self.debug:
Modified: short/3D/PyLith/branches/pylith-swig/pylith/topology/Mesh.py
===================================================================
--- short/3D/PyLith/branches/pylith-swig/pylith/topology/Mesh.py 2009-05-02 20:18:42 UTC (rev 14848)
+++ short/3D/PyLith/branches/pylith-swig/pylith/topology/Mesh.py 2009-05-02 20:36:11 UTC (rev 14849)
@@ -24,7 +24,7 @@
# PUBLIC METHODS /////////////////////////////////////////////////////
- def __init__(self, comm=None, dim=None):
+ def __init__(self, dim=None, comm=None):
"""
Constructor.
"""
@@ -33,7 +33,7 @@
elif comm is None:
ModuleMesh.__init__(self, dim)
else:
- ModuleMesh.__init__(self, dim, comm.handle)
+ ModuleMesh.__init__(self, dim, comm)
return
Modified: short/3D/PyLith/branches/pylith-swig/pylith/topology/MeshImporter.py
===================================================================
--- short/3D/PyLith/branches/pylith-swig/pylith/topology/MeshImporter.py 2009-05-02 20:18:42 UTC (rev 14848)
+++ short/3D/PyLith/branches/pylith-swig/pylith/topology/MeshImporter.py 2009-05-02 20:36:11 UTC (rev 14849)
@@ -95,7 +95,7 @@
import mpi
if mpi.MPI_Comm_size(mpi.MPI_COMM_WORLD) > 1:
self._info.log("Distributing mesh.")
- mesh = self.distributor.distribute(mesh)
+ mesh = self.distributor.distribute(mesh, normalizer)
if self.debug:
mesh.view("Distributed mesh.")
More information about the CIG-COMMITS
mailing list