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.