diff options
Diffstat (limited to 'src/Hyperslab.c')
-rw-r--r-- | src/Hyperslab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hyperslab.c b/src/Hyperslab.c index 6f37f37..9d644f0 100644 --- a/src/Hyperslab.c +++ b/src/Hyperslab.c @@ -1113,7 +1113,7 @@ static const char *checkParameters (const cGH *GH, int vindex, int vtimelvl, { return ("Invalid variable index"); } - if (vtimelvl < 0 || vtimelvl >= CCTK_NumTimeLevelsFromVarI (vindex)) + if (vtimelvl < 0 || vtimelvl >= CCTK_MaxTimeLevelsVI (vindex)) { return ("Invalid timelevel"); } |