aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/data.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2012-01-12 14:11:27 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2012-01-12 14:11:27 -0500
commit46332aac951851730f7ff59237d8e3ba3a9987a8 (patch)
tree42cdadd935fbcc83eff3dd238e3d7cfcc76f32fb /Carpet/CarpetLib/src/data.cc
parentc602c5f29b37f3dfdf236d9215846d4028837ba1 (diff)
CarpetLib: Allocate space for dstbox before restricting/prolongating
Allocate space for dstbox instead of srcbox before restricting or prolongating.
Diffstat (limited to 'Carpet/CarpetLib/src/data.cc')
-rw-r--r--Carpet/CarpetLib/src/data.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index c7eb52145..fdb3cd8ce 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -650,12 +650,11 @@ transfer_time (vector <gdata const *> const & gsrcs,
for (int tl = timelevel0; tl < timelevel0 + ntimelevels; ++ tl) {
tmps.AT(tl) =
new data (this->varindex, this->cent, this->transport_operator);
- tmps.AT(tl)->allocate (srcbox, this->proc());
+ tmps.AT(tl)->allocate (dstbox, this->proc());
assert (gsrcs.AT(tl));
data const * const src = dynamic_cast <data const *> (gsrcs.AT(tl));
- assert (not slabinfo);
- tmps.AT(tl)->transfer_p_r (src, dstbox, srcbox, NULL, order_space);
+ tmps.AT(tl)->transfer_p_r (src, dstbox, srcbox, slabinfo, order_space);
}
time_interpolate (tmps, dstbox, dstbox, times, time, order_time);