diff options
author | Roland Haas <rhaas@tapir.caltech.edu> | 2013-09-27 19:02:15 -0700 |
---|---|---|
committer | Roland Haas <rhaas@tapir.caltech.edu> | 2013-09-27 19:08:16 -0700 |
commit | cbae83ccbe1076d089918e87eae606a79a30311f (patch) | |
tree | b5e136bdc1f40adffa85e2d98c06e8da8b82f8fc | |
parent | 911ab59919a935b1d25146830673b2d200c74fed (diff) |
Carpet: fix no_split_directions implementation
had forgotten a level of indirection
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 3 |
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; |