aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-05-13 03:43:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-05-13 03:43:00 +0000
commit5b3f9599c26818cb9a7fc22141ec68046d0311bf (patch)
treeca1b3813897424d64973dbbdf142be68f4c5ffde /Carpet
parent5c4739d9d5bb39cefc6427f4991346e61178f3e9 (diff)
CarpetLib: Use the correct time when interpolating while regridding
Use the correct time when interpolating while regridding. darcs-hash:20070513034335-dae7b-df3960395af6cd7a8fb75ceb7bb6b6513933bcf2.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/ggf.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/Carpet/CarpetLib/src/ggf.cc b/Carpet/CarpetLib/src/ggf.cc
index 34cd80374..aac554201 100644
--- a/Carpet/CarpetLib/src/ggf.cc
+++ b/Carpet/CarpetLib/src/ggf.cc
@@ -158,14 +158,11 @@ void ggf::recompose_fill (comm_state & state, int const rl,
for (int ml = 0; ml < h.mglevels(); ++ ml) {
vector <int> tls;
- vector <CCTK_REAL> times;
if (do_prolongate and rl > 0 and transport_operator != op_none) {
int const numtl = timelevels (ml, rl);
tls.resize (numtl);
- times.resize (numtl);
for (int tl = 0; tl < numtl; ++ tl) {
tls.AT(tl) = tl;
- times.AT(tl) = t.time (tls.AT(tl), rl - 1, ml);
}
}
@@ -195,7 +192,7 @@ void ggf::recompose_fill (comm_state & state, int const rl,
& dh::dboxes::fast_old2new_ref_prol_recv,
& dh::dboxes::fast_old2new_ref_prol_send,
tls, rl - 1, ml,
- times.AT(tl));
+ t.time (tl, rl, ml));
} // for tl
} // if transport_operator
} // if rl