aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-06-07 15:19:38 -0500
committerErik Schnetter <schnetter@gmail.com>2012-06-07 15:19:38 -0500
commit07dffdc1d2a479c980d017b08d6ed87d0b2c3f6d (patch)
tree0f4cc7c7e8531a1508f001cec92d02b685184b6a
parentf6494b998fb384de17d359d79c7acec3e6eaf4ca (diff)
CarpetLib: Output error message for illegal bbox setups
-rw-r--r--Carpet/CarpetLib/src/bbox.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bbox.hh b/Carpet/CarpetLib/src/bbox.hh
index f9fe2b906..2847576b5 100644
--- a/Carpet/CarpetLib/src/bbox.hh
+++ b/Carpet/CarpetLib/src/bbox.hh
@@ -80,6 +80,11 @@ public:
#ifdef CARPET_DEBUG
assert_bbox_limits();
#endif
+ if (not (all (stride() > T(0))) or
+ not (all ((upper() - lower()) % stride() == T(0))))
+ {
+ cerr << "bbox: lower=" << lower() << " upper=" << upper() << " stride=" << stride() << "\n";
+ }
assert (all (stride() > T(0)));
assert (all ((upper() - lower()) % stride() == T(0)));
}