[cig-commits] [commit] baagaard/fix-faults-intersect: Small fix for getting edge nodeset in parallel. (6dae00d)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Tue Oct 28 11:20:36 PDT 2014
Repository : https://github.com/geodynamics/pylith
On branch : baagaard/fix-faults-intersect
Link : https://github.com/geodynamics/pylith/compare/73e98674057018c1fc39a80722d1d2d463fe0db8...0dd37c1e9f3114ce98185fbf017af0347aa7287c
>---------------------------------------------------------------
commit 6dae00d5ae8bc67257d598369c513b21102a0ea0
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Tue Oct 28 11:20:35 2014 -0700
Small fix for getting edge nodeset in parallel.
Labels are not yet distributed, so only look on rank 0.
>---------------------------------------------------------------
6dae00d5ae8bc67257d598369c513b21102a0ea0
libsrc/pylith/faults/FaultCohesive.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libsrc/pylith/faults/FaultCohesive.cc b/libsrc/pylith/faults/FaultCohesive.cc
index d168569..01bb0db 100644
--- a/libsrc/pylith/faults/FaultCohesive.cc
+++ b/libsrc/pylith/faults/FaultCohesive.cc
@@ -146,7 +146,8 @@ pylith::faults::FaultCohesive::adjustTopology(topology::Mesh* const mesh,
CohesiveTopology::createFault(&faultMesh, *mesh, groupField);
PetscDMLabel faultBdLabel = NULL;
- if (strlen(edge()) > 0) {
+ // We do not have labels on all ranks until after distribution
+ if (strlen(edge()) > 0 && !rank) {
err = DMPlexGetLabel(dmMesh, edge(), &faultBdLabel);PYLITH_CHECK_ERROR(err);
if (!faultBdLabel) {
std::ostringstream msg;
More information about the CIG-COMMITS
mailing list