diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2012-01-12 14:11:27 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:15:42 +0100 |
commit | 0841f1ca08ffe80a6da7c5cacb4d5df23c8a5f11 (patch) | |
tree | ba6845d068d66d507cd065a06651f4d5fd077c08 /Carpet/CarpetLib/src/data.cc | |
parent | 1866c52c13670a26b1ca560c263d9a896e73a0d8 (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.cc | 5 |
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); |