aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2009-11-08 14:41:04 -0600
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 16:45:12 +0000
commit06d444b6743eff192e001db89bc07b13f5e8736c (patch)
tree24583c46e047cb381db9d04d83be4e8b3e5f5bad /Carpet/CarpetIOASCII
parent0635c3b19fc7b1234c341d728519768f451d0c7c (diff)
CarpetIOASCII: Determine number of time levels correctly
Use CCTK_ActiveTimeLevelsVI instead of CCTK_NumTimeLevelsFromVarI to determine the number of time levels.
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc
index de1c341e8..f8d1cb9b7 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -524,7 +524,8 @@ namespace CarpetIOASCII {
const int ml = groupdata.grouptype == CCTK_GF ? mglevel : 0;
const int rl = groupdata.grouptype == CCTK_GF ? reflevel : 0;
- const int num_tl = CCTK_NumTimeLevelsFromVarI (vindex);
+ // const int num_tl = CCTK_NumTimeLevelsFromVarI (vindex);
+ const int num_tl = CCTK_ActiveTimeLevelsVI (cctkGH, vindex);
assert (num_tl >= 1);