From f14a9bb95b2b9f7bb71b06daf7ce7e4ad1ff0c7c Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Fri, 26 Oct 2018 10:48:23 -0700 Subject: update according to amrex changes --- Source/WarpXMove.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/WarpXMove.cpp') diff --git a/Source/WarpXMove.cpp b/Source/WarpXMove.cpp index 2082130ef..c4eb2300d 100644 --- a/Source/WarpXMove.cpp +++ b/Source/WarpXMove.cpp @@ -224,7 +224,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir) FArrayBox* srcfab = &(tmpmf[mfi]); Box outbox = mfi.fabbox(); outbox &= adjBox; - AMREX_CUDA_LAUNCH_HOST_DEVICE_LAMBDA(outbox, toutbox, + AMREX_GPU_LAUNCH_HOST_DEVICE_LAMBDA(outbox, toutbox, { srcfab->setVal(0.0, toutbox, 0, nc); }); @@ -234,7 +234,7 @@ WarpX::shiftMF (MultiFab& mf, const Geometry& geom, int num_shift, int dir) } else { dstBox.growLo(dir, num_shift); } - AMREX_CUDA_LAUNCH_HOST_DEVICE_LAMBDA(dstBox, tdstBox, + AMREX_GPU_LAUNCH_HOST_DEVICE_LAMBDA(dstBox, tdstBox, { dstfab->setVal(0.0, tdstBox, 0, nc); dstfab->copy(*srcfab, amrex::shift(tdstBox,dir,num_shift), 0, tdstBox, 0, nc); -- cgit v1.2.3