diff options
author | 2018-12-06 16:45:35 -0800 | |
---|---|---|
committer | 2018-12-06 16:45:35 -0800 | |
commit | ffa7e36c1f7b3ea2a629f918a1a336bd3cc78df1 (patch) | |
tree | 30642262fb924870e404c189f8686cecfa5e1d3a /Source/LaserParticleContainer.cpp | |
parent | 25dd277dd1c44457f8ca4432b6e93fe2fdde49bd (diff) | |
parent | 8ae0feaf0f5573c5f1623cb8acaf3bcc6ab5566c (diff) | |
download | WarpX-ffa7e36c1f7b3ea2a629f918a1a336bd3cc78df1.tar.gz WarpX-ffa7e36c1f7b3ea2a629f918a1a336bd3cc78df1.tar.zst WarpX-ffa7e36c1f7b3ea2a629f918a1a336bd3cc78df1.zip |
Merge branch 'fabptr' into dev
Diffstat (limited to 'Source/LaserParticleContainer.cpp')
-rw-r--r-- | Source/LaserParticleContainer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); + }); } } } |