diff options
author | allen <allen@10716dce-81a3-4424-a2c8-48026a0d3035> | 2003-07-16 22:02:32 +0000 |
---|---|---|
committer | allen <allen@10716dce-81a3-4424-a2c8-48026a0d3035> | 2003-07-16 22:02:32 +0000 |
commit | 539acb2b941d207f9689f3d60a566b219ea47145 (patch) | |
tree | 18d28a3e627539bc751320ca06bd5de636f40c70 | |
parent | 3659afd1308d0dba95eae7ae5974dce3eda4a2e7 (diff) |
Change to CCTK_MaxTimeLevels
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@105 10716dce-81a3-4424-a2c8-48026a0d3035
-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"); } |