aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 143847d4d..56fdbc378 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -2059,10 +2059,12 @@ PhysicalParticleContainer::Evolve (int lev,
// Gather and push for particles not in the buffer
//
WARPX_PROFILE_VAR_START(blp_fg);
+ const auto np_to_push = np_gather;
+ const auto gather_lev = lev;
PushPX(pti, exfab, eyfab, ezfab,
bxfab, byfab, bzfab,
Ex.nGrowVect(), e_is_nodal,
- 0, np_gather, lev, lev, dt, ScaleFields(false), a_dt_type);
+ 0, np_to_push, lev, gather_lev, dt, ScaleFields(false), a_dt_type);
if (np_gather < np)
{
@@ -2103,7 +2105,7 @@ PhysicalParticleContainer::Evolve (int lev,
WARPX_PROFILE_VAR_STOP(blp_fg);
// Current Deposition
- if (skip_deposition == false)
+ if (!skip_deposition)
{
// Deposit at t_{n+1/2}
const amrex::Real relative_time = -0.5_rt * dt;