Skip to content

Conversation

@fluidnumerics-joe
Copy link
Contributor

@fluidnumerics-joe fluidnumerics-joe commented Aug 4, 2025

This PR adds in a new spatialhash class that is meant to be used in the initial search for particles on curvilinear grids. It also brings in a change in the _search_indices_curvilinear_2d internal function. The initial guess for the particle location is set to the value provided by a spatial hash query.

@fluidnumerics-joe fluidnumerics-joe changed the title [DRAFT] 2119 spatial hashing 2119 spatial hashing Aug 5, 2025
@fluidnumerics-joe fluidnumerics-joe marked this pull request as ready for review August 5, 2025 19:17
@fluidnumerics-joe
Copy link
Contributor Author

I think what remains here in this PR is to compare initial spatial hash search in a larger example with the original curvilinear search. Working on this now.

Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, @fluidnumerics-joe! See below some comments/questions.

erikvansebille added a commit to Parcels-code/parcels-benchmarks that referenced this pull request Aug 13, 2025
Meant to compare the spatial hashing (Parcels-code/Parcels#2132) against the old (vectorized) search
@fluidnumerics-joe fluidnumerics-joe merged commit add8158 into v4-dev Aug 13, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Aug 13, 2025
@fluidnumerics-joe fluidnumerics-joe deleted the 2119-spatial-hashing branch August 13, 2025 11:58
@fluidnumerics-joe fluidnumerics-joe restored the 2119-spatial-hashing branch August 13, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants