Skip to content
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

[MPI] Fix getCellRank in RegularGrid #1037

Merged
merged 14 commits into from
Jun 27, 2024

Conversation

eve-le-guillou
Copy link
Contributor

Hi all,

This PR fixes the getCellRank method in the regular grid triangulation.
The former method would assign the rank of a cell by checking if all its vertices are either owned by the process or within the discrete bounding box of the process. This is a problem as a process may own a cell and own none of its vertices.

The new getCellRank method will check if the barycenter of the cell is within the floating point bounding box of the process.

In the ExplicitTriangulation, getCellRank has been also modified, so that the process that owns the cell is the process of lowest rank value.

This was tested by computing the ranks for vertices and cells on 8 processes and checking that all processes return the same rank for a given simplex on a $50^3$ data set.

Thanks for any feedback.

@julien-tierny
Copy link
Collaborator

looks all good, thanks!

@julien-tierny julien-tierny merged commit 1ef2da7 into topology-tool-kit:dev Jun 27, 2024
45 checks passed
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.

None yet

2 participants