From 0841f1ca08ffe80a6da7c5cacb4d5df23c8a5f11 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 12 Jan 2012 14:11:27 -0500 Subject: CarpetLib: Allocate space for dstbox before restricting/prolongating Allocate space for dstbox instead of srcbox before restricting or prolongating. --- Carpet/CarpetLib/src/data.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Carpet/CarpetLib') 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 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 (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); -- cgit v1.2.3