aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Haas <rhaas@tapir.caltech.edu>2013-09-27 19:02:15 -0700
committerRoland Haas <rhaas@tapir.caltech.edu>2013-09-27 19:08:16 -0700
commitcbae83ccbe1076d089918e87eae606a79a30311f (patch)
treeb5e136bdc1f40adffa85e2d98c06e8da8b82f8fc
parent911ab59919a935b1d25146830673b2d200c74fed (diff)
Carpet: fix no_split_directions implementation
had forgotten a level of indirection
-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;