aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/cacheinfo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/cacheinfo.cc')
-rw-r--r--Carpet/CarpetLib/src/cacheinfo.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/cacheinfo.cc b/Carpet/CarpetLib/src/cacheinfo.cc
index 0a8be7963..3e1a24fc6 100644
--- a/Carpet/CarpetLib/src/cacheinfo.cc
+++ b/Carpet/CarpetLib/src/cacheinfo.cc
@@ -126,6 +126,10 @@ pad_shape(vect<int,D> const& shape)
}
// Safety check
+ if (not (prod(padded_shape) <= 2 * prod(shape) + 1000)) {
+ cerr << "shape=" << shape << " prod(shape)=" << prod(shape) << "\n"
+ << "padded_shape=" << padded_shape << " prod(padded_shape)=" << prod(padded_shape) << "\n";
+ }
assert(prod(padded_shape) <= 2 * prod(shape) + 1000);
if (verbose) {