Skip to content

Morton hashing still requires while loop in some cases in Curvilinear Grid #2175

@fluidnumerics-joe

Description

@fluidnumerics-joe

In discussion with @erikvansebille , there is desire to remove the while loop in the curvilinear grid cell search immediately following the spatial hash query. In the query method, I decided to relax the condition to match the particle's morton encoded position with an exact morton code from source grid as this strict matching caused a number of tests to fail. The thinking is that if a particle position has a "nearby" morton encoding then it will be spatially close to a cell centroid with a morton encoding in close proximity.

However, relaxing strict matching prevents us from safely removing the while loop in the curvilinear grid cell search. It sounds like we need to spend some time reviewing quantization and bit interleaving strategies to see if we can enforce exact morton code matching on particle positions.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions