aboutsummaryrefslogtreecommitdiff
path: root/Source/Evolve/WarpXEvolve.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/Evolve/WarpXEvolve.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/Evolve/WarpXEvolve.cpp')
-rw-r--r--Source/Evolve/WarpXEvolve.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp
index a97c87122..37023c8dd 100644
--- a/Source/Evolve/WarpXEvolve.cpp
+++ b/Source/Evolve/WarpXEvolve.cpp
@@ -366,7 +366,7 @@ WarpX::Evolve (int numsteps)
// inputs: unused parameters (e.g. typos) check after step 1 has finished
if (!early_params_checked) {
amrex::Print() << "\n"; // better: conditional \n based on return value
- amrex::ParmParse().QueryUnusedInputs();
+ amrex::ParmParse::QueryUnusedInputs();
//Print the warning list right after the first step.
amrex::Print() <<
@@ -540,7 +540,7 @@ void WarpX::SyncCurrentAndRho ()
// Without periodic single box, synchronize J and rho here,
// except with current correction or Vay deposition:
// in these cases, synchronize later (in WarpX::PushPSATD)
- if (current_correction == false &&
+ if (!current_correction &&
current_deposition_algo != CurrentDepositionAlgo::Vay)
{
SyncCurrent(current_fp, current_cp, current_buf);