Skip to content

Commit

Permalink
proper bin policy for tile sort (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxThevenet authored Jul 28, 2021
1 parent d76b288 commit 9691b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles/TileSort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ findParticlesInEachTile (

// Find the particles that are in each tile and return collections of indices per tile.
bins.build(
pti.numParticles(), pti.GetArrayOfStructs().begin(), cbx,
amrex::BinPolicy::OpenMP, pti.numParticles(), pti.GetArrayOfStructs().begin(), cbx,
// Pass lambda function that returns the tile index
[=] AMREX_GPU_HOST_DEVICE (const PlasmaParticleContainer::ParticleType& p)
noexcept -> amrex::IntVect
Expand Down

0 comments on commit 9691b8a

Please sign in to comment.