diff options
author | 2019-07-08 09:51:47 -0700 | |
---|---|---|
committer | 2019-07-08 09:51:47 -0700 | |
commit | 3ad66d17dcbca4b94ecab60e3ab53282e7552547 (patch) | |
tree | 05bc545e482e59aaefe5b39431ddce3b22cedb3b /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 71b57a2e5617fa81e52171906abaaba9b42723cb (diff) | |
download | WarpX-3ad66d17dcbca4b94ecab60e3ab53282e7552547.tar.gz WarpX-3ad66d17dcbca4b94ecab60e3ab53282e7552547.tar.zst WarpX-3ad66d17dcbca4b94ecab60e3ab53282e7552547.zip |
number of guard cells in current j multifab
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 1ed318c13..43b46ec49 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1532,11 +1532,13 @@ PhysicalParticleContainer::Evolve (int lev, // Deposit inside domains DepositCurrent(pti, wp, uxp, uyp, uzp, &jx, &jy, &jz, 0, np_current, thread_num, - lev, lev, dt, jx.nGrow()); - // Deposit in buffers - DepositCurrent(pti, wp, uxp, uyp, uzp, cjx, cjy, cjz, - np_current, np-np_current, thread_num, - lev, lev-1, dt, jx.nGrow()); + 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 |