aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-08-01 13:38:19 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-01 13:38:19 +0200
commit0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661 (patch)
tree3a96aabdc6ad518c2d1300800aaa8ee2cafebba3 /Source/Particles/PhysicalParticleContainer.cpp
parent63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 (diff)
downloadWarpX-0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661.tar.gz
WarpX-0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661.tar.zst
WarpX-0aa12461bd956e9e9a08e0ac3b8e2c2263aa7661.zip
Clang tidy CI test: add several readability checks to clang tidy CI test (#4124)
* add few readability checks to clang-tidy CI test * address all the issues found with clang-tidy * fix bug * fixed bug * fix residual issue * fix issue found with clang-tidy
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;