aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXMovingWindow.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/Utils/WarpXMovingWindow.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/Utils/WarpXMovingWindow.cpp')
-rw-r--r--Source/Utils/WarpXMovingWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp
index e43740d87..f62453f63 100644
--- a/Source/Utils/WarpXMovingWindow.cpp
+++ b/Source/Utils/WarpXMovingWindow.cpp
@@ -135,7 +135,7 @@ WarpX::MoveWindow (const int step, bool move_j)
if (step == end_moving_window_step) {
amrex::Print() << Utils::TextMsg::Info("Stopping moving window");
}
- if (moving_window_active(step) == false) return 0;
+ if (!moving_window_active(step)) return 0;
// Update the continuous position of the moving window,
// and of the plasma injection
@@ -491,12 +491,12 @@ WarpX::shiftMF (amrex::MultiFab& mf, const amrex::Geometry& geom,
const amrex::Box& outbox = mfi.fabbox() & adjBox;
if (outbox.ok()) {
- if (useparser == false) {
+ if (!useparser) {
AMREX_PARALLEL_FOR_4D ( outbox, nc, i, j, k, n,
{
srcfab(i,j,k,n) = external_field;
})
- } else if (useparser == true) {
+ } else {
// index type of the src mf
auto const& mf_IndexType = (tmpmf).ixType();
amrex::IntVect mf_type(AMREX_D_DECL(0,0,0));