[cig-commits] r22048 - short/3D/PyLith/trunk/libsrc/pylith/meshio

knepley at geodynamics.org knepley at geodynamics.org
Sat May 11 09:20:25 PDT 2013


Author: knepley
Date: 2013-05-11 09:20:25 -0700 (Sat, 11 May 2013)
New Revision: 22048

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/meshio/MeshBuilder.cc
Log:
Fix parallel bug with mesh creation

Modified: short/3D/PyLith/trunk/libsrc/pylith/meshio/MeshBuilder.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/meshio/MeshBuilder.cc	2013-05-11 14:53:48 UTC (rev 22047)
+++ short/3D/PyLith/trunk/libsrc/pylith/meshio/MeshBuilder.cc	2013-05-11 16:20:25 UTC (rev 22048)
@@ -75,6 +75,7 @@
   PetscDM dmMesh;
   PetscBool pInterpolate = interpolate ? PETSC_TRUE : PETSC_FALSE;
 
+  err = MPI_Bcast(&dim, 1, MPIU_INT, 0, comm);PYLITH_CHECK_ERROR(err);
   err = DMPlexCreateFromCellList(comm, dim, numCells, numVertices, numCorners, pInterpolate, &cells[0], spaceDim, &(*coordinates)[0], &dmMesh);PYLITH_CHECK_ERROR(err);
   mesh->setDMMesh(dmMesh);
 



More information about the CIG-COMMITS mailing list