aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-07-12 10:27:10 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-07-12 10:27:10 -0700
commit0879f13013f343f65ad208990661d82f96105af4 (patch)
treec48679458741724d55ecdea00c2a1d4f18fdbef9 /Source/Particles/PhysicalParticleContainer.cpp
parent4cc356324767a894d247ddae2935cf16bfe57813 (diff)
parentd2e9bbe3ada4958883d957dca694a4848e5c4972 (diff)
downloadWarpX-0879f13013f343f65ad208990661d82f96105af4.tar.gz
WarpX-0879f13013f343f65ad208990661d82f96105af4.tar.zst
WarpX-0879f13013f343f65ad208990661d82f96105af4.zip
Merge branch 'dev' into fft_from_local_boxes
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 7e7c9534e..43b46ec49 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1529,8 +1529,16 @@ PhysicalParticleContainer::Evolve (int lev,
//
// Current Deposition
//
- DepositCurrent(pti, wp, uxp, uyp, uzp, jx, jy, jz,
- cjx, cjy, cjz, np_current, np, thread_num, lev, dt);
+ // Deposit inside domains
+ DepositCurrent(pti, wp, uxp, uyp, uzp, &jx, &jy, &jz,
+ 0, np_current, thread_num,
+ lev, lev, dt);
+ if (has_buffer){
+ // Deposit in buffers
+ DepositCurrent(pti, wp, uxp, uyp, uzp, cjx, cjy, cjz,
+ np_current, np-np_current, thread_num,
+ lev, lev-1, dt);
+ }
//
// copy particle data back