aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Haas <rhaas@caltech.edu>2012-03-08 13:34:56 -0800
committerRoland Haas <rhaas@caltech.edu>2012-03-08 13:34:56 -0800
commitfd22591282ab6af615aa43ad05768193ce6e59cb (patch)
tree57c6e473ccfa1622951845df4cd65bd619b1ac99
parentfb30481262f5b8417055692f1dfa56738ce6cbd6 (diff)
CarpetLib: output regions when not-contained error is detected in
restrict_3d_cc_rf2 and restrict_3d_vc_rf2
-rw-r--r--Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc3
-rw-r--r--Carpet/CarpetLib/src/restrict_3d_vc_rf2.cc3
2 files changed, 6 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc b/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
index c9c4bfc2d..f200f59fe 100644
--- a/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
+++ b/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
@@ -65,6 +65,9 @@ namespace CarpetLib {
if (not regbbox.expanded_for(srcbbox).is_contained_in(srcbbox) or
not regbbox.is_contained_in(dstbbox))
{
+ cerr << "srcbbox: " << srcbbox << endl
+ << "dstbbox: " << dstbbox << endl
+ << "regbbox: " << regbbox << endl;
CCTK_WARN (0, "Internal error: region extent is not contained in array extent");
}
diff --git a/Carpet/CarpetLib/src/restrict_3d_vc_rf2.cc b/Carpet/CarpetLib/src/restrict_3d_vc_rf2.cc
index f750ca149..d61db7036 100644
--- a/Carpet/CarpetLib/src/restrict_3d_vc_rf2.cc
+++ b/Carpet/CarpetLib/src/restrict_3d_vc_rf2.cc
@@ -168,6 +168,9 @@ namespace CarpetLib {
if (not regbbox.expanded_for(srcbbox).is_contained_in(srcbbox) or
not regbbox.is_contained_in(dstbbox))
{
+ cerr << "srcbbox: " << srcbbox << endl
+ << "dstbbox: " << dstbbox << endl
+ << "regbbox: " << regbbox << endl;
CCTK_WARN (0, "Internal error: region extent is not contained in array extent");
}