aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc5
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);