[cig-commits] [commit] knepley/fix-faults-parallel: Fault : Correct default value (1cbca9c)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Apr 17 15:17:29 PDT 2014


Repository : ssh://geoshell/pylith

On branch  : knepley/fix-faults-parallel
Link       : https://github.com/geodynamics/pylith/compare/3024a26c49e046806d7236baad593c56fae56062...1cbca9cbd832376cceca629383ad3c8e3db090f0

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

commit 1cbca9cbd832376cceca629383ad3c8e3db090f0
Author: Matthew G. Knepley <knepley at gmail.com>
Date:   Thu Apr 17 17:17:20 2014 -0500

    Fault : Correct default value


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

1cbca9cbd832376cceca629383ad3c8e3db090f0
 libsrc/pylith/faults/BruneSlipFn.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libsrc/pylith/faults/BruneSlipFn.cc b/libsrc/pylith/faults/BruneSlipFn.cc
index 3da6e6e..185642c 100644
--- a/libsrc/pylith/faults/BruneSlipFn.cc
+++ b/libsrc/pylith/faults/BruneSlipFn.cc
@@ -167,7 +167,7 @@ pylith::faults::BruneSlipFn::initialize(const topology::Mesh& faultMesh,
   err = DMPlexGetLabel(faultDMMesh, "clamped", &clamped);PYLITH_CHECK_ERROR(err);
   _slipVertex.resize(spaceDim);
   for(PetscInt v = vStart; v < vEnd; ++v) {
-    PetscInt value = 0;
+    PetscInt value = -1;
 
     if (clamped) {err = DMLabelGetValue(clamped, v, &value);PYLITH_CHECK_ERROR(err);}
     if (value >= 0) continue;
@@ -276,7 +276,7 @@ pylith::faults::BruneSlipFn::slip(topology::Field* slip,
   err = DMPlexGetLabel(dmMesh, "clamped", &clamped);PYLITH_CHECK_ERROR(err);
   const int spaceDim = _slipVertex.size();
   for(PetscInt v = vStart; v < vEnd; ++v) {
-    PetscInt value = 0;
+    PetscInt value = -1;
 
     if (clamped) {err = DMLabelGetValue(clamped, v, &value);PYLITH_CHECK_ERROR(err);}
     if (value >= 0) continue;



More information about the CIG-COMMITS mailing list