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.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 80bb952a5..74d9f8e67 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -1256,7 +1256,8 @@ namespace Carpet {
"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;
+ assert(no_split_directions[i] < dim);
+ no_split_dims[no_split_directions[i]] = true;
}
SplitRegions_Automatic (cctkGH, superregs, regs, no_split_dims);
break;