diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-08-08 18:09:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-08-08 18:09:00 +0000 |
commit | 39efa60dad756391d52f9aa6f8fba8d081ae090f (patch) | |
tree | e4976833ba545baab47b2c9d828c8ccbcf9cc8c6 /Carpet/CarpetIOASCII | |
parent | ab6bcd86c54db939e76ff0a80c274b8dc28c85b6 (diff) |
CarpetIOASCII: Repair outputting all time levels
Use positive time levels when outputtting all time levels.
darcs-hash:20050808180907-891bb-7fdf3f70084dbcd9bc49d6b50869de8774032805.gz
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index a948ab785..a0aac6a3b 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -571,9 +571,8 @@ namespace CarpetIOASCII { const ggf* const ff = arrdata.at(group).at(Carpet::map).data.at(var); - const int mintl = output_all_timelevels ? 1-num_tl : 0; - const int maxtl = 0; - for (int tl=mintl; tl<=maxtl; ++tl) { + const int maxtl = output_all_timelevels ? num_tl : 1; + for (int tl=0; tl<maxtl; ++tl) { const gdata* const data = (*ff) (tl, rl, component, mglevel); |