Skip to content

Commit

Permalink
AMReX: int Index Type for Bins
Browse files Browse the repository at this point in the history
Binning functions are refactored from `unsigned int` to `int`
in AMReX-Codes/amrex#3684 for performance
reasons. This updates our usage to reflect the changes.
  • Loading branch information
ax3l committed Aug 12, 2024
1 parent 216d16d commit fb59021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Particles/Resampling/VelocityCoincidenceThinning.H
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public:
void labelOnSphericalVelocityGrid (const amrex::ParticleReal ux[],
const amrex::ParticleReal uy[],
const amrex::ParticleReal uz[],
const unsigned int indices[],
const int indices[],
int bin_array[], int index_array[],
const int cell_start, const int cell_stop ) const
{
Expand Down Expand Up @@ -151,7 +151,7 @@ public:
void labelOnCartesianVelocityGrid (const amrex::ParticleReal ux[],
const amrex::ParticleReal uy[],
const amrex::ParticleReal uz[],
const unsigned int indices[],
const int indices[],
int bin_array[], int index_array[],
const int cell_start, const int cell_stop ) const
{
Expand All @@ -168,7 +168,7 @@ public:

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
void operator() (const amrex::ParticleReal ux[], const amrex::ParticleReal uy[],
const amrex::ParticleReal uz[], const unsigned int indices[],
const amrex::ParticleReal uz[], const int indices[],
int bin_array[], int index_array[],
const int cell_start, const int cell_stop) const
{
Expand Down

0 comments on commit fb59021

Please sign in to comment.