Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing overloads for partial range candidate neighbors in VerletList #725

Open
Azrael3000 opened this issue Dec 13, 2023 · 3 comments
Open

Comments

@Azrael3000
Copy link

linked_cell_list = LinkedCellList<memory_space>( position, grid_delta,

Should be

linked_cell_list = LinkedCellList<memory_space>( position, begin, end, grid_delta,

as otherwise VerletList will take the positions from 0 to position.size() which in my case it should not do as I'm using this during insertion and not everything in the position array is populated.

@streeve
Copy link
Member

streeve commented Dec 13, 2023

This was a purposeful choice because of the common use case for only storing neighbors for local (MPI) particles (0, num_local), but including ghosted particles (num_local, position.size()) in that list. We can certainly add an overload which separates neighbor_list_{begin,end} and candidate_neighbor_{begin,end}

@Azrael3000
Copy link
Author

I agree that it makes sense from this point of view, so an overloaded version should be the solution

@streeve
Copy link
Member

streeve commented Dec 13, 2023

@lebuller if you have a minute, can you add these constructor/build overloads? I may be able to get to it today/tomorrow otherwise

@streeve streeve changed the title LinkedList constructor in VerletList fails to pass begin and end Missing overloads for partial range candidate neighbors in VerletList Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants