diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-06-07 15:19:38 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-06-07 15:19:38 -0500 |
commit | 07dffdc1d2a479c980d017b08d6ed87d0b2c3f6d (patch) | |
tree | 0f4cc7c7e8531a1508f001cec92d02b685184b6a | |
parent | f6494b998fb384de17d359d79c7acec3e6eaf4ca (diff) |
CarpetLib: Output error message for illegal bbox setups
-rw-r--r-- | Carpet/CarpetLib/src/bbox.hh | 5 |
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))); } |