diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-09-14 15:53:41 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:25:22 +0000 |
commit | 2ecbcc432b62c4caedfa50c07a486dd6880a7d34 (patch) | |
tree | 2cfceeb7f5ad6a93bd04d5e3ebc8d18234c1b24e /Carpet | |
parent | 90a9fb3f728b1236bb13c11a25cb769a985c2a21 (diff) |
CarpetLib: Require that the bboxes are aligned for the & operator
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetLib/src/bbox.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bbox.hh b/Carpet/CarpetLib/src/bbox.hh index 1c3d5d407..9783d5638 100644 --- a/Carpet/CarpetLib/src/bbox.hh +++ b/Carpet/CarpetLib/src/bbox.hh @@ -146,6 +146,7 @@ public: bbox operator& (const bbox& b) const { ASSERT_BBOX (all(stride()==b.stride())); + ASSERT_BBOX (is_aligned_with(b)); vect<T,D> lo = max(lower(),b.lower()); vect<T,D> up = min(upper(),b.upper()); return bbox(lo,up,stride()); |