diff options
author | 2019-08-19 20:14:06 -0400 | |
---|---|---|
committer | 2019-08-19 20:14:06 -0400 | |
commit | 930140eb3dacfbd46561e81141bb1fe26bc5fdca (patch) | |
tree | a55a219821e195abf595927f105a788819498e12 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 8469c5419922cbdbcec31fbf1d80fdb0d88674a1 (diff) | |
parent | c023286720c7ae8aa2913efc461240a81e8b2bd9 (diff) | |
download | WarpX-930140eb3dacfbd46561e81141bb1fe26bc5fdca.tar.gz WarpX-930140eb3dacfbd46561e81141bb1fe26bc5fdca.tar.zst WarpX-930140eb3dacfbd46561e81141bb1fe26bc5fdca.zip |
Merge branch 'dev' into ion_lev
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index a221be01c..27d8cc5ae 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1175,7 +1175,12 @@ PhysicalParticleContainer::Evolve (int lev, pti.GetPosition(m_xp[thread_num], m_yp[thread_num], m_zp[thread_num]); BL_PROFILE_VAR_STOP(blp_copy); - if (rho) DepositCharge(pti, wp, rho, crho, 0, np_current, np, thread_num, lev); + if (rho) { + DepositCharge(pti, wp, rho, 0, 0, np_current, thread_num, lev, lev); + if (has_buffer){ + DepositCharge(pti, wp, crho, 0, np_current, np-np_current, thread_num, lev, lev-1); + } + } if (! do_not_push) { @@ -1318,7 +1323,12 @@ PhysicalParticleContainer::Evolve (int lev, BL_PROFILE_VAR_STOP(blp_copy); } - if (rho) DepositCharge(pti, wp, rho, crho, 1, np_current, np, thread_num, lev); + if (rho) { + DepositCharge(pti, wp, rho, 1, 0, np_current, thread_num, lev, lev); + if (has_buffer){ + DepositCharge(pti, wp, crho, 1, np_current, np-np_current, thread_num, lev, lev-1); + } + } if (cost) { const Box& tbx = pti.tilebox(); |