diff options
author | 2023-08-01 00:08:20 +0200 | |
---|---|---|
committer | 2023-07-31 15:08:20 -0700 | |
commit | 4638e5aececfb33d39677d6d4f6241a3953ebe34 (patch) | |
tree | e83c1b8e9215ef4b3ee1b07d7177439d94e04f31 /Source/Utils/ParticleUtils.cpp | |
parent | acf015f95243a063b74e095a9a9890d483fb842c (diff) | |
download | WarpX-4638e5aececfb33d39677d6d4f6241a3953ebe34.tar.gz WarpX-4638e5aececfb33d39677d6d4f6241a3953ebe34.tar.zst WarpX-4638e5aececfb33d39677d6d4f6241a3953ebe34.zip |
Clang tidy CI test: add some modernize checks to clang-tidy CI test (#4133)
* Clang Tidy: add several modernize checks
* eliminate file included in commit by mistake
* fix bug
Diffstat (limited to 'Source/Utils/ParticleUtils.cpp')
-rw-r--r-- | Source/Utils/ParticleUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Utils/ParticleUtils.cpp b/Source/Utils/ParticleUtils.cpp index 89dba1e1d..60e04f12b 100644 --- a/Source/Utils/ParticleUtils.cpp +++ b/Source/Utils/ParticleUtils.cpp @@ -53,12 +53,12 @@ namespace ParticleUtils { ParticleBins bins; bins.build(np, particle_ptr, cbx, // Pass lambda function that returns the cell index - [=] AMREX_GPU_DEVICE (const ParticleType& p) noexcept -> IntVect + [=] AMREX_GPU_DEVICE (const ParticleType& p) noexcept { - return IntVect(AMREX_D_DECL( + return IntVect{AMREX_D_DECL( static_cast<int>((p.pos(0)-plo[0])*dxi[0] - lo.x), static_cast<int>((p.pos(1)-plo[1])*dxi[1] - lo.y), - static_cast<int>((p.pos(2)-plo[2])*dxi[2] - lo.z))); + static_cast<int>((p.pos(2)-plo[2])*dxi[2] - lo.z))}; }); return bins; |