aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-03-23 20:55:10 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 16:45:38 +0000
commit0ae8a26422891e3ca9b6aed196f88253f51e9f31 (patch)
tree6428afd8742f97778110f649ac85d42b5dde22cf /Carpet/CarpetIOHDF5
parent3aa90aab63133b572b1023a745d095534e654a4d (diff)
CarpetIOHDF5: Initialise times on all time levels while recovering
Initialise the times of all time levels of grid arrays while recovering.
Diffstat (limited to 'Carpet/CarpetIOHDF5')
-rw-r--r--Carpet/CarpetIOHDF5/src/Input.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Input.cc b/Carpet/CarpetIOHDF5/src/Input.cc
index 336655025..3fbf02192 100644
--- a/Carpet/CarpetIOHDF5/src/Input.cc
+++ b/Carpet/CarpetIOHDF5/src/Input.cc
@@ -1247,10 +1247,10 @@ static int ReadVar (const cGH* const cctkGH,
if (in_recovery) {
if (group.grouptype != CCTK_GF) {
- assert (data.tt->timelevels == 1);
- data.tt->set_time (mglevel, reflevel, 0,
- ((cctkGH->cctk_time - cctk_initial_time)
- / (delta_time * mglevelfact)) );
+ for (int tl=0; tl<data.tt->timelevels; ++tl) {
+ data.tt->set_time (mglevel, reflevel, tl,
+ cctkGH->cctk_time - tl * cctkGH->cctk_delta_time);
+ }
}
}