From 5c4739d9d5bb39cefc6427f4991346e61178f3e9 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 13 May 2007 03:41:00 +0000 Subject: CarpetLib: Handle first regridding correctly. Do not require that regridding fills all grid points if the previous grid hierarchy is completely empty, i.e, if this is the first regridding. darcs-hash:20070513034129-dae7b-7c838458c107d6873665eeb3e92d2a4c72565f30.gz --- Carpet/CarpetLib/src/dh.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Carpet/CarpetLib/src') 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()); + } -- cgit v1.2.3