aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Reisswig <reisswig@tapir.caltech.edu>2012-06-04 07:56:51 -0700
committerChristian Reisswig <reisswig@tapir.caltech.edu>2012-06-04 07:56:51 -0700
commita6970dd8aa8dfca122e05ae5b9ea1df7da399d39 (patch)
tree86992ae34c32e7705f07bc15cf59359c15dbb3c5
parent7c6f6e9257d66a52d9ae8489a014ce2ea496238f (diff)
CarpetInterp: "m" -> "mglevel" when accessing groupdata.AT(gi).activetimelevels.AT(mglevel).AT(rl) to find out how many active timelevels are available. When using "m", I get a std::vector out of range.
-rw-r--r--Carpet/CarpetInterp/src/interp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc
index a58c7d9d5..77e4fb4cb 100644
--- a/Carpet/CarpetInterp/src/interp.cc
+++ b/Carpet/CarpetInterp/src/interp.cc
@@ -1697,7 +1697,7 @@ namespace CarpetInterp {
// Are there enough time levels?
int const gi = CCTK_GroupIndexFromVarI (vi);
- int const active_tl = groupdata.AT(gi).activetimelevels.AT(m).AT(rl);
+ int const active_tl = groupdata.AT(gi).activetimelevels.AT(mglevel).AT(rl);
if (active_tl <= my_tl) {
char * const fullname = CCTK_FullName(vi);
CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING,