[cig-commits] [commit] master: Only throw exception on root node (56df489)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Dec 10 10:00:46 PST 2014


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

On branch  : master
Link       : https://github.com/geodynamics/vq/compare/4d339b3a383b69e1552cfeef4ca20868a1377289...d0edc6ddd56f9105f6d2488db4a9f36368529695

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

commit 56df489c762df5a7ffc1a854bcfecab6621f56cf
Author: Eric Heien <emheien at ucdavis.edu>
Date:   Thu Dec 4 14:21:02 2014 -0800

    Only throw exception on root node


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

56df489c762df5a7ffc1a854bcfecab6621f56cf
 src/simulation/UpdateBlockStress.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/simulation/UpdateBlockStress.cpp b/src/simulation/UpdateBlockStress.cpp
index 6d54985..7d2b3c0 100644
--- a/src/simulation/UpdateBlockStress.cpp
+++ b/src/simulation/UpdateBlockStress.cpp
@@ -106,7 +106,7 @@ SimRequest UpdateBlockStress::run(SimFramework *_sim) {
     sim->allReduceBlockVal(next_event, next_event_global, BLOCK_VAL_MIN);
 
     // If we didn't find any static failures or aftershocks, abort the simulation
-    assertThrow(next_event_global.val < DBL_MAX, "System stuck, no blocks to move.");
+    if (sim->isRootNode()) assertThrow(next_event_global.val < DBL_MAX, "System stuck, no blocks to move.");
 
     // Increment the simulation year to the next failure time and
     // update the slip on all other blocks



More information about the CIG-COMMITS mailing list