aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/region.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/region.cc')
-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) {