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

Unique point global ids for refined level grids #801

Closed
wants to merge 2 commits into from

Conversation

aritorto
Copy link
Member

@aritorto aritorto commented Nov 19, 2024

This PR introduces a structure to manage the point global IDs of all refined child cells per parent. This structure ensures the correct assignment of global point IDs in refined grids, gathering already-assigned IDs for interior cells and distributing them for overlap cells.

Current approach avoids duplicated point ids in the following setting:
Let's say a block of cells to be refined is distributed in P_{i_0}, ..., P_{i_n}, with n+1 < grid.comm().size().
If all cells to be refined are not "seen"(neither interior nor overlap) for every process P with P != P_{i_j}, j = 0, ..., n.

When this fails, duplicated ids appear on edges or faces "shared" with unseen cells.

Keeping this potential duplication of point ids in mind, this PR allows distributing Local Grid Refinements (LGRs) across different processes.

@aritorto aritorto marked this pull request as draft November 19, 2024 16:12
@aritorto aritorto mentioned this pull request Nov 19, 2024
@aritorto aritorto marked this pull request as ready for review November 20, 2024 16:51
@aritorto
Copy link
Member Author

jenkins build this serial please

@aritorto aritorto force-pushed the rewritePointIds branch 2 times, most recently from f2a59f5 to b4e1989 Compare November 21, 2024 07:10
@aritorto
Copy link
Member Author

Improve by #802

@aritorto aritorto closed this Nov 21, 2024
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.

1 participant