aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-09-10 22:02:40 -0400
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:37 +0100
commit3663e8e537496167775fd34c58a1cfc1958726ed (patch)
tree575ff0630a01d798f66f34bdfab2e3cfae8cb25b /Carpet/CarpetLib
parent366cb0a6b4ae0b23f26f2abfd3926db2cb59cd44 (diff)
CarpetLib: Ensure that split/combined regions don't have a tree structure attached
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/region.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/region.cc b/Carpet/CarpetLib/src/region.cc
index 09fb7d5f0..f0d486260 100644
--- a/Carpet/CarpetLib/src/region.cc
+++ b/Carpet/CarpetLib/src/region.cc
@@ -132,6 +132,8 @@ region_t::split (CCTK_REAL const ratio_new_over_old)
outer_boundaries[idir][1] = false;
newreg.outer_boundaries[idir][0] = false;
+ assert (not processors);
+
return newreg;
}
@@ -161,6 +163,7 @@ combine_regions (vector<region_t> const & oldregs,
{
region_t const & reg = * ri;
assert (reg.map == m);
+ assert (not reg.processors);
comps += reg.extent;
for (int f = 0; f < 2; ++ f) {
for (int d = 0; d < dim; ++ d) {