From d14d12c65f433ea0525e35c41809f3dcb6b482bb Mon Sep 17 00:00:00 2001 From: allen Date: Wed, 16 Jul 2003 21:57:38 +0000 Subject: Change to CCTK_MaxTimeLevels git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@46 ff385933-4943-42dc-877b-ffc776028de6 --- src/NaNCheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NaNCheck.c b/src/NaNCheck.c index 591bcca..dde9228 100644 --- a/src/NaNCheck.c +++ b/src/NaNCheck.c @@ -716,7 +716,7 @@ static void CheckForNaN (int vindex, const char *optstring, void *_info) { timelevel = strtol (optstring + 10, &endptr, 10); if (*endptr != ']' || - timelevel < 0 || timelevel >= CCTK_NumTimeLevelsFromVarI (vindex)) + timelevel < 0 || timelevel >= CCTK_MaxTimeLevelsVI (vindex)) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, "CheckForNaN: Invalid timelevel '%s' given for variable " @@ -912,7 +912,7 @@ static void SetToNaN (int vindex, const char *optstring, void *_info) else { timelevel = strtol (optstring + 10, &endptr, 10); - if (timelevel < 0 || timelevel >= CCTK_NumTimeLevelsFromVarI (vindex)) + if (timelevel < 0 || timelevel >= CCTK_MaxTimeLevelsVI (vindex)) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, "SetToNaN: Invalid timelevel '%s' given for variable " -- cgit v1.2.3