aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/LoadBalanceReal
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-11-21 13:35:12 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 19:55:00 +0000
commit808b6ebe3dec9c3cb3bf5762dabbe58a5387f7c0 (patch)
treeae834f1cdd072a5928293b6c1067494e4cec7678 /Carpet/Carpet/src/LoadBalanceReal
parenta5d293d00a535be7e1c9617001155675b38540b7 (diff)
Carpet: Recursive load balancing: Enable more debugging output
Diffstat (limited to 'Carpet/Carpet/src/LoadBalanceReal')
-rw-r--r--Carpet/Carpet/src/LoadBalanceReal/splitregions_recursively.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/LoadBalanceReal/splitregions_recursively.cc b/Carpet/Carpet/src/LoadBalanceReal/splitregions_recursively.cc
index 2b1b8c345..ab6bfe3cd 100644
--- a/Carpet/Carpet/src/LoadBalanceReal/splitregions_recursively.cc
+++ b/Carpet/Carpet/src/LoadBalanceReal/splitregions_recursively.cc
@@ -203,8 +203,8 @@ namespace Carpet {
}
}
- // Create a mapping from this list of regions to maps, since the
- // Fortran code will overwrite this information
+ // Create a mapping from this list of regions to maps, and set the
+ // map to the superregion index instead
vector<int> superreg_maps(nsuperregs);
for (int r=0; r<nsuperregs; ++r) {
superreg_maps.AT(r) = superregs.AT(r).map;
@@ -282,8 +282,10 @@ namespace Carpet {
}
// Output regions
if (recompose_verbose) {
+ region_t::full_output = true;
cout << "SRMR superregss " << superregss << endl;
cout << "SRMR regss " << regss << endl;
+ region_t::full_output = false;
}
// Consistency check
@@ -337,9 +339,11 @@ namespace Carpet {
}
}
if (has_error) {
+ region_t::full_output = true;
cout << "SRMR: all_old_superregss=" << all_old_superregss << "\n"
<< "SRMR: all_superregss=" << all_superregss << "\n"
<< "SRMR: all_regss=" << all_regss << "\n";
+ region_t::full_output = false;
CCTK_WARN(CCTK_WARN_ABORT, "Internal error");
}