From ec1acc46b4d8769bdd21271ee4519a8cdba68bca Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Fri, 17 May 2024 15:18:47 -0400 Subject: [PATCH] fixup: use getParticle in LinkedCell Neighbor --- core/src/Cabana_LinkedCellList.hpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/core/src/Cabana_LinkedCellList.hpp b/core/src/Cabana_LinkedCellList.hpp index e34ee4fa5..ee7711843 100644 --- a/core/src/Cabana_LinkedCellList.hpp +++ b/core/src/Cabana_LinkedCellList.hpp @@ -977,14 +977,7 @@ class NeighborList> { int particle_id = list.binOffset( ijk ) + ( neighbor_index - previous_count ); - if ( list.sorted() ) - { - return particle_id + list.getParticleBegin(); - } - else - { - return list.permutation( particle_id ); - } + return list.getParticle( particle_id ); } // Update previous to all bins so far. previous_count = total_count; @@ -1022,14 +1015,7 @@ class NeighborList> { int particle_id = list.binOffset( ij ) + ( neighbor_index - previous_count ); - if ( list.sorted() ) - { - return particle_id + list.getParticleBegin(); - } - else - { - return list.permutation( particle_id ); - } + return list.getParticle( particle_id ); } // Update previous to all bins so far. previous_count = total_count;