Uh oh!
There was an error while loading. Please reload this page.
Add RegularMesh.get_indices_at_coords method - #3824
Conversation
GuySten
commented
Feb 19, 2026
I suggest making |
GuySten
commented
Feb 19, 2026
You also should decide on a way to signal that a point is outside the mesh. |
Thanks for this idea @GuySten I have made the abstract method. Would it be ok if I leave the spherical mesh and rectilinear mesh implementation of get_indices_at_coords to another PR, I added not yet implemented errors for those options if that helps in the short term. Also the point outside of the mesh question, not sure what is best to do there. Cylindrical mesh doesn't do anything special in that case so this PR is following that precedence. Would a warning message that prints when a user puts in a point outside the mesh be the best option for this? |
GuySten
commented
Feb 19, 2026
I think it is fine. |
shimwell
commented
Feb 25, 2026
I'm also keen to make two "good first issues" and during the OSSFE conference hackathon we can solve these get indices at coords for spherical and rectilinear mesh. We are looking for straight forward issues to work on during that day. |
There was a problem hiding this comment.
Thanks @shimwell. Note that I removed the "clamping" behavior since that wasn't consistent with how the similar method for CylindricalMesh worked.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Description
To match the
CylindricalMeshwhich has this function class I am keen to add thisget_indices_at_coordsfunction to theRegularMeshclass.Fixes # (issue)
Checklist