aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2019-07-08 10:42:46 -0700
committerGravatar Andrew Myers <atmyers2@gmail.com> 2019-07-08 10:42:46 -0700
commit93540a43349cf2972d695fb9586a8c6a59e41dbf (patch)
tree49152b487731e988c2601f29df4aa4aafdc2ac33 /Source/Particles/PhysicalParticleContainer.cpp
parent1b01b9c49d8aa96b71f9702d2733a3e092d61f69 (diff)
parent2ebbffb0d1408751aac0ea78a9bc1dc9d7e577d6 (diff)
downloadWarpX-93540a43349cf2972d695fb9586a8c6a59e41dbf.tar.gz
WarpX-93540a43349cf2972d695fb9586a8c6a59e41dbf.tar.zst
WarpX-93540a43349cf2972d695fb9586a8c6a59e41dbf.zip
Merge branch 'dev' of github.com:ECP-WarpX/WarpX into dev
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