Skip to content

Avoid using Python MPI operation in _parent_mesh_embedding#4926

Open
leo-collins wants to merge 5 commits intomainfrom
leo/lexicographic-reduce
Open

Avoid using Python MPI operation in _parent_mesh_embedding#4926
leo-collins wants to merge 5 commits intomainfrom
leo/lexicographic-reduce

Conversation

@leo-collins
Copy link
Contributor

When building a VOM, the owning cell is determined by the minimum L1 distance to the reference cell. Ties are broken by choosing the cell with the highest rank.

This was implemented with a custom reduction operation _mpi_array_lexicographic_min, which scaled poorly in parallel (probably due to MPI calling python code). Instead, we do separate MPI.MIN and and MPI.MAX allreduces which are much faster.

@connorjward
Copy link
Contributor

This seems reasonable

@leo-collins leo-collins marked this pull request as ready for review February 26, 2026 13:42
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