[cig-commits] [commit] baagaard/feature-output-station-names, baagaard/feature-progress-monitor, baagaard/fix-faults-intersect, master: Small fix for getting edge nodeset in parallel. (6dae00d)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 15:47:29 PST 2014


Repository : https://github.com/geodynamics/pylith

On branches: baagaard/feature-output-station-names,baagaard/feature-progress-monitor,baagaard/fix-faults-intersect,master
Link       : https://github.com/geodynamics/pylith/compare/f33c75b19fd60eedb2a3405db76a1fee333bb1d7...5b6d812b1612809fea3bd331c4e5af98c25a536a

>---------------------------------------------------------------

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