Skip to content

Commit

Permalink
Fix dangling-reference error revealed by gcc 13.2 with -Werror -Wextr…
Browse files Browse the repository at this point in the history
…a -Wall
  • Loading branch information
philip-blakely committed Nov 21, 2024
1 parent e248781 commit 3522544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleUtil.H
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ void PermutationForDeposition (Gpu::DeviceVector<index_type>& perm, index_type n
PermutationForDeposition<index_type>(perm, nitems, bx.numPts() * ref_product,
[=] AMREX_GPU_DEVICE (index_type idx) noexcept
{
const auto& p = make_particle<ParticleType>{}(ptd,idx);
const auto p = make_particle<ParticleType>{}(ptd,idx);

IntVect iv = ((p.pos() - pos_offset) * dxi).round();

Expand Down

0 comments on commit 3522544

Please sign in to comment.