diff options
Diffstat (limited to 'src/NewHyperslab.c')
-rw-r--r-- | src/NewHyperslab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NewHyperslab.c b/src/NewHyperslab.c index d4854d1..2f79aef 100644 --- a/src/NewHyperslab.c +++ b/src/NewHyperslab.c @@ -1129,7 +1129,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"); } |