Skip to content

Commit

Permalink
Fix increment for pure SoA (follow on to AMReX-Codes#3278) (AMReX-Cod…
Browse files Browse the repository at this point in the history
…es#3284)

The proposed changes:
- [x] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [ ] include documentation in the code and/or rst files, if appropriate
  • Loading branch information
atmyers authored and guj committed Jul 13, 2023
1 parent 2e7e959 commit 7d51f64
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 7d51f64

Please sign in to comment.