aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/dh.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index e95f12527..b96c1d899 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -826,9 +826,11 @@ regrid ()
} // if rl > 0
- // All points must now have been received, either through
- // synchronisation or through prolongation
- assert (needrecv.empty());
+ if (int (oldboxes.size()) > ml and int (oldboxes.AT(ml).size()) > 0) {
+ // All points must now have been received, either through
+ // synchronisation or through prolongation
+ assert (needrecv.empty());
+ }