aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid2/src/regrid.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetRegrid2/src/regrid.cc')
-rw-r--r--Carpet/CarpetRegrid2/src/regrid.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/Carpet/CarpetRegrid2/src/regrid.cc b/Carpet/CarpetRegrid2/src/regrid.cc
index 360b6e0c4..c5ea20a80 100644
--- a/Carpet/CarpetRegrid2/src/regrid.cc
+++ b/Carpet/CarpetRegrid2/src/regrid.cc
@@ -344,10 +344,8 @@ namespace CarpetRegrid2 {
if (freeze_unaligned_parent_levels) {
// Assume that non-existing levels are always aligned
if (min_rl < reflevels) {
- CCTK_REAL const mytime =
- vtt.at(Carpet::map)->time (0, min_rl, mglevel);
- CCTK_REAL const parenttime =
- vtt.at(Carpet::map)->time (0, min_rl - 1, mglevel);
+ CCTK_REAL const mytime = tt->get_time (mglevel, min_rl, 0);
+ CCTK_REAL const parenttime = tt->get_time (mglevel, min_rl - 1, 0);
CCTK_REAL const eps = 1.0e-12;
in_sync =
abs (mytime - parenttime) <= eps * abs (delta_time);