diff options
-rw-r--r-- | src/Hyperslab.c | 2 | ||||
-rw-r--r-- | src/NewHyperslab.c | 2 |
2 files changed, 2 insertions, 2 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"); } 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"); } |