aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.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/FieldSolver/SpectralSolver/SpectralFieldDataRZ.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/FieldSolver/SpectralSolver/SpectralFieldDataRZ.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.cpp
index 10575b189..b5e9f4c90 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralFieldDataRZ.cpp
@@ -326,7 +326,7 @@ SpectralFieldDataRZ::FABZForwardTransform (amrex::MFIter const & mfi, amrex::Box
[=] AMREX_GPU_DEVICE(int i, int j, int k, int mode) noexcept {
Complex spectral_field_value = tmp_arr(i,j,k,mode);
// Apply proper shift.
- if (is_nodal_z==false) spectral_field_value *= zshift_arr[j];
+ if (!is_nodal_z) spectral_field_value *= zshift_arr[j];
// Copy field into the correct index.
int const ic = field_index + mode*n_fields;
fields_arr(i,j,k,ic) = spectral_field_value*inv_nz;
@@ -364,7 +364,7 @@ SpectralFieldDataRZ::FABZBackwardTransform (amrex::MFIter const & mfi, amrex::Bo
int const ic = field_index + mode*n_fields;
Complex spectral_field_value = fields_arr(i,j,k,ic);
// Apply proper shift.
- if (is_nodal_z==false) spectral_field_value *= zshift_arr[j];
+ if (!is_nodal_z) spectral_field_value *= zshift_arr[j];
// Copy field into the right index.
tmp_arr(i,j,k,mode) = spectral_field_value;
});