diff options
author | 2019-06-16 11:01:08 -0700 | |
---|---|---|
committer | 2019-06-16 11:06:02 -0700 | |
commit | 19fa3eaaf87ce778f72b5559e94584615313a051 (patch) | |
tree | 6885db9f0b56faa528f2a7ee66cfb94d1fbd025f /Source/Laser/LaserParticleContainer.cpp | |
parent | 89df8eb11ed61bd6d6f58a2e096b1eb3a132538a (diff) | |
download | WarpX-19fa3eaaf87ce778f72b5559e94584615313a051.tar.gz WarpX-19fa3eaaf87ce778f72b5559e94584615313a051.tar.zst WarpX-19fa3eaaf87ce778f72b5559e94584615313a051.zip |
Turn off FAB_IS_MANAGED
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r-- | Source/Laser/LaserParticleContainer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp index 2f964b6f3..de410b31f 100644 --- a/Source/Laser/LaserParticleContainer.cpp +++ b/Source/Laser/LaserParticleContainer.cpp @@ -518,10 +518,11 @@ LaserParticleContainer::Evolve (int lev, if (cost) { const Box& tbx = pti.tilebox(); wt = (amrex::second() - wt) / tbx.d_numPts(); - FArrayBox* costfab = cost->fabPtr(pti); - AMREX_LAUNCH_HOST_DEVICE_LAMBDA ( tbx, work_box, + Array4<Real> const& costarr = cost->array(pti); + amrex::ParallelFor(tbx, + [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept { - costfab->plus(wt, work_box); + costarr(i,j,k) += wt; }); } } |