Repository navigation
Add RegularMesh.get_indices_at_coords method - #3824
Conversation
|
I suggest making |
|
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? |
|
I think it is fine. |
|
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.
Co-authored-by: Paul Romano <[email protected]>
Co-authored-by: Paul Romano <[email protected]>
Description
To match the
CylindricalMeshwhich has this function class I am keen to add thisget_indices_at_coordsfunction to theRegularMeshclass.Fixes # (issue)
Checklist