aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/SetupGH.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/SetupGH.cc')
-rw-r--r--Carpet/Carpet/src/SetupGH.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index f24d3f6d4..80bb952a5 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -1249,7 +1249,16 @@ namespace Carpet {
// Split it into components, one for each processor
switch (gdata.disttype) {
case CCTK_DISTRIB_DEFAULT: {
- SplitRegions_Automatic (cctkGH, superregs, regs);
+ CCTK_INT no_split_directions[dim];
+ bvect no_split_dims(false);
+ int const nvals =
+ Util_TableGetIntArray(gdata.tagstable, dim, no_split_directions,
+ "no_split_directions");
+ assert((0 <= nvals && nvals <= dim) || nvals == UTIL_ERROR_TABLE_NO_SUCH_KEY);
+ for(int i=0;i<nvals;++i) {
+ no_split_dims[i] = true;
+ }
+ SplitRegions_Automatic (cctkGH, superregs, regs, no_split_dims);
break;
}
case CCTK_DISTRIB_CONSTANT: {