aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-10-01 17:24:56 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-10-03 16:19:42 -0500
commit2b34ea7469762dd5746a3e76340e47e65295667b (patch)
tree576fdd544099a460b984da957407969118b5e3c3 /Carpet
parente7f44eaefaf88a8848d9ba2454df2c981cb3627f (diff)
CarpetLib: Allow expanding empty bboxes
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/bbox.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/bbox.cc b/Carpet/CarpetLib/src/bbox.cc
index 6183f17e5..a14e1e9a3 100644
--- a/Carpet/CarpetLib/src/bbox.cc
+++ b/Carpet/CarpetLib/src/bbox.cc
@@ -160,7 +160,8 @@ bool bbox<T,D>::operator> (const bbox& b) const {
template<class T, int D>
bbox<T,D> bbox<T,D>::expand (const vect<T,D>& lo, const vect<T,D>& hi) const {
// Allow expansion only into directions where the extent is not negative
- assert (all(lower()<=upper() or (lo==T(0) and hi==T(0))));
+ // assert (all(lower()<=upper() or (lo==T(0) and hi==T(0))));
+ assert (all(shape()>=vect<T,D>(0) or (lo==T(0) and hi==T(0))));
const vect<T,D> str = stride();
const vect<T,D> lb = lower() - lo * str;
const vect<T,D> ub = upper() + hi * str;