diff options
author | 2019-07-11 18:13:03 -0700 | |
---|---|---|
committer | 2019-07-11 18:13:03 -0700 | |
commit | d7e134057af8510a91d812b7acb4dba9823be5c0 (patch) | |
tree | 2baf88f6c0b45207e1d532447e8d261077dbd5b1 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 3be7bde222c0f1d8540e007112eb5bb56be999eb (diff) | |
parent | d2e9bbe3ada4958883d957dca694a4848e5c4972 (diff) | |
download | WarpX-d7e134057af8510a91d812b7acb4dba9823be5c0.tar.gz WarpX-d7e134057af8510a91d812b7acb4dba9823be5c0.tar.zst WarpX-d7e134057af8510a91d812b7acb4dba9823be5c0.zip |
Merge branch 'dev' into EBpush_to_cpp
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 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 |