[cig-commits] [commit] knepley/upgrade-petsc-interface: Create local index set for cells associated with material. (9880964)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Tue Nov 19 12:21:18 PST 2013
Repository : ssh://geoshell/pylith
On branch : knepley/upgrade-petsc-interface
Link : https://github.com/geodynamics/pylith/compare/83238c2f478c37e1223aa6a6afe8e4ba8762f3ac...98809641a2f06d95f29257aaa275c3523f4eb303
>---------------------------------------------------------------
commit 98809641a2f06d95f29257aaa275c3523f4eb303
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Tue Nov 19 12:24:02 2013 -0800
Create local index set for cells associated with material.
Use PETSC_COMM_SELF as communicator in ISCreateGeneral() for local index
set associated with cells in material.
>---------------------------------------------------------------
98809641a2f06d95f29257aaa275c3523f4eb303
libsrc/pylith/topology/Stratum.icc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libsrc/pylith/topology/Stratum.icc b/libsrc/pylith/topology/Stratum.icc
index 58fe33b..61dbd8d 100644
--- a/libsrc/pylith/topology/Stratum.icc
+++ b/libsrc/pylith/topology/Stratum.icc
@@ -110,9 +110,7 @@ pylith::topology::StratumIS::StratumIS(const PetscDM dmMesh,
cells[count++] = points[i];
} // if
} // for
- MPI_Comm comm;
- err = PetscObjectGetComm((PetscObject) dmMesh, &comm);PYLITH_CHECK_ERROR(err);
- err = ISCreateGeneral(comm, count, cells, PETSC_COPY_VALUES, &_indexSet);PYLITH_CHECK_ERROR(err);
+ err = ISCreateGeneral(PETSC_COMM_SELF, count, cells, PETSC_COPY_VALUES, &_indexSet);PYLITH_CHECK_ERROR(err);
delete[] cells; cells = 0;
err = ISDestroy(&pointsIS);PYLITH_CHECK_ERROR(err);assert(!pointsIS);
} // if/else
More information about the CIG-COMMITS
mailing list