From 11ea73b7232dbf7b3f9d9f0767ad0a5936fcd0ca Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 7 Jun 2012 15:19:38 -0500 Subject: CarpetLib: Output error message for illegal bbox setups --- Carpet/CarpetLib/src/bbox.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Carpet') 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))); } -- cgit v1.2.3