From 8ae0feaf0f5573c5f1623cb8acaf3bcc6ab5566c Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Thu, 6 Dec 2018 16:32:29 -0800 Subject: more changes due to AMReX changes --- Source/LaserParticleContainer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/LaserParticleContainer.cpp') diff --git a/Source/LaserParticleContainer.cpp b/Source/LaserParticleContainer.cpp index 6ee79e9aa..cf669d32d 100644 --- a/Source/LaserParticleContainer.cpp +++ b/Source/LaserParticleContainer.cpp @@ -432,7 +432,11 @@ LaserParticleContainer::Evolve (int lev, if (cost) { const Box& tbx = pti.tilebox(); wt = (amrex::second() - wt) / tbx.d_numPts(); - (*cost)[pti].plus(wt, tbx); + FArrayBox* costfab = cost->fabPtr(pti); + AMREX_LAUNCH_HOST_DEVICE_LAMBDA ( tbx, work_box, + { + costfab->plus(wt, work_box); + }); } } } -- cgit v1.2.3