From 539acb2b941d207f9689f3d60a566b219ea47145 Mon Sep 17 00:00:00 2001 From: allen Date: Wed, 16 Jul 2003 22:02:32 +0000 Subject: Change to CCTK_MaxTimeLevels git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@105 10716dce-81a3-4424-a2c8-48026a0d3035 --- src/Hyperslab.c | 2 +- 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"); } -- cgit v1.2.3