aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-08 09:51:47 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-07-08 09:51:47 -0700
commit3ad66d17dcbca4b94ecab60e3ab53282e7552547 (patch)
tree05bc545e482e59aaefe5b39431ddce3b22cedb3b /Source/Particles/PhysicalParticleContainer.cpp
parent71b57a2e5617fa81e52171906abaaba9b42723cb (diff)
downloadWarpX-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.cpp12
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