aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp
diff options
context:
space:
mode:
authorChristian Reisswig <reisswig@tapir.caltech.edu>2012-06-02 02:22:18 -0700
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:22 +0100
commitccabaa78b032618b133fee610480d5f70ac2296f (patch)
treeee14dd809e5d1d16280c11f6f3e978decec77888 /Carpet/CarpetInterp
parent96bbb7e78d77f095296dbdf7a9aa442feb99228f (diff)
CarpetInterp: Don't use CCTK_ActiveTimeLevels to get number of active timelevels. Use groupdata.AT(gi).activetimelevels.AT(m).AT(rl) instead.
This rempoves a problem in CarpetInterp's error check.
Diffstat (limited to 'Carpet/CarpetInterp')
-rw-r--r--Carpet/CarpetInterp/src/interp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc
index e9674bbc1..a58c7d9d5 100644
--- a/Carpet/CarpetInterp/src/interp.cc
+++ b/Carpet/CarpetInterp/src/interp.cc
@@ -1696,7 +1696,8 @@ namespace CarpetInterp {
assert (my_tl < num_tl.AT(n));
// Are there enough time levels?
- int const active_tl = CCTK_ActiveTimeLevelsVI (cctkGH, vi);
+ int const gi = CCTK_GroupIndexFromVarI (vi);
+ int const active_tl = groupdata.AT(gi).activetimelevels.AT(m).AT(rl);
if (active_tl <= my_tl) {
char * const fullname = CCTK_FullName(vi);
CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING,
@@ -1705,7 +1706,6 @@ namespace CarpetInterp {
free (fullname);
}
- int const gi = CCTK_GroupIndexFromVarI (vi);
int const vi0 = CCTK_FirstVarIndexI (gi);
ggf const *const ff = arrdata.AT(gi).AT(m).data.AT(vi-vi0);
void const *const ptr =