diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-05-20 09:24:24 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-05-20 09:24:24 -0500 |
commit | c71496243d4ebcd57d1e558a2dd2b0e519b41897 (patch) | |
tree | 19ceddfa2f2ebb39f6b6afd1a6d644a28566b3c0 | |
parent | 63affbc4c9f953e3471aec55239f64c4906f7658 (diff) |
CarpetLib: More verbose error output if sanity check fails
-rw-r--r-- | Carpet/CarpetLib/src/cacheinfo.cc | 4 |
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) { |