aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-09-14 15:57:01 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:25:23 +0000
commitb3b92dca1fe6f20148126a76a98c0c2b23c55c18 (patch)
treed25f48fcbe3e62793bf4b2a8fe8620839e230d76 /Carpet/CarpetLib
parent351d38c7a8b35e6b4250c098e007341b0f8e3001 (diff)
CarpetLib: Add another consistency check when executing communication schedule
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/ggf.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/ggf.cc b/Carpet/CarpetLib/src/ggf.cc
index 32723571d..ce6fe3ee3 100644
--- a/Carpet/CarpetLib/src/ggf.cc
+++ b/Carpet/CarpetLib/src/ggf.cc
@@ -580,6 +580,9 @@ transfer_from_all (comm_state & state,
int const lc1 = h.get_local_component(rl1,c1);
int const p2 = h.processor(rl2,c2);
int const p1 = h.processor(rl1,c1);
+ // Ensure the communication schedule is consistent
+ assert (p1==dist::rank() or p2==dist::rank());
+ assert (lc1>=0 or lc2>=0);
// Source and destination data
gdata * const dst =