Skip to content

Commit

Permalink
Fix increment for pure SoA (follow on to AMReX-Codes#3278)
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Apr 27, 2023
1 parent 40b0ed5 commit 709791f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleContainerI.H
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator>::Incremen
[=] AMREX_GPU_DEVICE (const typename ParticleTileType::ConstParticleTileDataType& ptd, int ip,
amrex::Array4<amrex::Real> const& count)
{
const auto& p = make_particle<ParticleType>{}(ptd, ip);
const auto& p = make_particle<ConstParticleType>{}(ptd, ip);
auto iv = getParticleCell(p, plo, dxi, domain);
amrex::Gpu::Atomic::AddNoRet(&count(iv), 1.0_rt);
}, false);
Expand Down

0 comments on commit 709791f

Please sign in to comment.