aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-01-12 21:09:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-01-12 21:09:00 +0000
commit45ca50257756f8b4fd1d597ef48dbbbca4d939a9 (patch)
tree6bbf8f49811e727c5ca0441cf57c8b3155808168 /Carpet/CarpetLib/src
parent46e30f53f9789beaa49b942ed3a0c168e4a99f7c (diff)
CarpetLib: Ensure that the bboxes are aligned with the base extent
Ensure that the bboxes are aligned with the base extent in the dh class. darcs-hash:20070112210924-dae7b-b0cd213087916602753565ecb6317692d65139e0.gz
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/dh.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index 8c2fe6cfd..67c2a94f7 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -547,6 +547,19 @@ void dh::check_bboxes (dh::dboxes & box,
{
DECLARE_CCTK_PARAMETERS;
+ // Ensure that the bboxes are aligned with the base extent
+ {
+ if (ml==0) {
+ if (rl==0) {
+ assert (box.interior.is_aligned_with(h.baseextent));
+ } else {
+ // TODO: check alignment with next coarser grid
+ }
+ } else {
+ // TODO: check alignment with next finer mglevel
+ }
+ }
+
// Assert that all boundaries are synced or received
{
const ibset& sync_not = box.sync_not;