diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-13 03:41:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-13 03:41:00 +0000 |
commit | 5c4739d9d5bb39cefc6427f4991346e61178f3e9 (patch) | |
tree | 89debf30718ececa2716f3c2060d20f784e44dc2 /Carpet/CarpetLib/src | |
parent | d3d37e531335d1ed51a225a91942b253cb943100 (diff) |
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
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r-- | Carpet/CarpetLib/src/dh.cc | 8 |
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()); + } |