diff options
author | 2019-07-10 14:50:06 -0700 | |
---|---|---|
committer | 2019-07-10 14:50:06 -0700 | |
commit | 5425e58b59add9653a93fa68dc2834bb9288d5ef (patch) | |
tree | d18154f48c1c054013def47f5e538b2da3cb330a /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 72f951e0f27326cee03387b1e5873bd61e0c2487 (diff) | |
parent | 2bc4cf47c7c91cf7dd6428263354a0da31b6908d (diff) | |
download | WarpX-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.cpp | 12 |
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 |