aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/ParticleUtils.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-08-01 00:08:20 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-31 15:08:20 -0700
commit4638e5aececfb33d39677d6d4f6241a3953ebe34 (patch)
treee83c1b8e9215ef4b3ee1b07d7177439d94e04f31 /Source/Utils/ParticleUtils.cpp
parentacf015f95243a063b74e095a9a9890d483fb842c (diff)
downloadWarpX-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.cpp6
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;