aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/dh.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-09-28 15:50:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-09-28 15:50:00 +0000
commit335d39d6ed24fe3c7fc5cfacd5a2985042e0c824 (patch)
treeda3ae5b3325a7bc718d0687f86d9f1a278d7b10a /Carpet/CarpetLib/src/dh.cc
parentaccd2c17c541255866d3f9ae8efb8c9a81d68a18 (diff)
CarpetLib: Always output the grid structure if there was an error
darcs-hash:20070928155050-dae7b-dd2712aec2215d4e79fedac8a1205a4791900d98.gz
Diffstat (limited to 'Carpet/CarpetLib/src/dh.cc')
-rw-r--r--Carpet/CarpetLib/src/dh.cc27
1 files changed, 14 insertions, 13 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index 369d6f0e2..50d1466e6 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -963,12 +963,16 @@ regrid ()
} // for c
-
-
- // Output:
-
- if (output_bboxes) {
-
+ } // for rl
+ } // for m
+
+
+
+ // Output:
+ if (output_bboxes or there_was_an_error) {
+
+ for (int ml = 0; ml < h.mglevels(); ++ ml) {
+ for (int rl = 0; rl < h.reflevels(); ++ rl) {
for (int c = 0; c < h.components(rl); ++ c) {
dboxes const & box = boxes.AT(ml).AT(rl).AT(c);
@@ -978,13 +982,10 @@ regrid ()
cout << endl;
} // for c
-
- } // if output_bboxes
-
-
-
- } // for rl
- } // for m
+ } // for rl
+ } // for m
+
+ } // if output_bboxes
if (there_was_an_error) {
CCTK_WARN (CCTK_WARN_ABORT,