Skip to content

Store a mesh k-d tree for mesh variable interpolation #318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

brmather
Copy link
Member

Saves having to rebuild a k-d tree every time meshVar.rbf_interpolate is called.

Minor changes

  • use np.power instead of np.pow to maintain backward compatibility with numpy < 2.
  • modify read_timestep to read mesh vertices from h5f["geometry"]["vertices"] and be compatible with the function call for petsc_save_checkpoint.

Ben Mather added 2 commits May 28, 2025 12:15
@brmather brmather requested a review from julesghub May 28, 2025 02:26
@julesghub
Copy link
Member

@brmather
Thanks for this - looks great but one tests is failing.
https://github.com/underworldcode/underworld3/actions/runs/15290057983/job/43007729809#step:5:61
please fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants