aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-07-10 14:50:06 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-07-10 14:50:06 -0700
commit5425e58b59add9653a93fa68dc2834bb9288d5ef (patch)
treed18154f48c1c054013def47f5e538b2da3cb330a /Source/Particles/PhysicalParticleContainer.cpp
parent72f951e0f27326cee03387b1e5873bd61e0c2487 (diff)
parent2bc4cf47c7c91cf7dd6428263354a0da31b6908d (diff)
downloadWarpX-5425e58b59add9653a93fa68dc2834bb9288d5ef.tar.gz
WarpX-5425e58b59add9653a93fa68dc2834bb9288d5ef.tar.zst
WarpX-5425e58b59add9653a93fa68dc2834bb9288d5ef.zip
Merge branch 'dev' into RZgeometry
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 5dd7e2026..93a0ad7ea 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1555,8 +1555,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