Skip to content

allow for ghost only mesh#3743

Merged
ksagiyam merged 1 commit intomasterfrom
ksagiyam/allow_for_ghost_only_mesh
Sep 10, 2024
Merged

allow for ghost only mesh#3743
ksagiyam merged 1 commit intomasterfrom
ksagiyam/allow_for_ghost_only_mesh

Conversation

@ksagiyam
Copy link
Copy Markdown
Contributor

Allow for ghost only meshes.

plex.pointSF.ilocal is an array of leaf points on each rank. If the array is trivial (i.e., ilocal = [0, 1, 2, ...]), ilocal is set to NULL. So typically we use this array as point = ilocal[i] if ilocal else i, but in some places we simply do point = ilocal[I]. This is fine if a rank at least owns one cell (ilocal is nontrivial due to plex point numbering convention) or does not have cells at all, but not fine if the rank sees and only sees ghost cells (ilocal is trivial, so ilocal becomes NULL) . It turned out that we need to handle the latter case if submeshes are involved the submesh PR.

@ksagiyam ksagiyam force-pushed the ksagiyam/allow_for_ghost_only_mesh branch from e3b7e72 to b21e65b Compare August 22, 2024 22:05
@ksagiyam ksagiyam changed the title assemble: allow for ghost only mesh allow for ghost only mesh Aug 22, 2024
@ksagiyam ksagiyam force-pushed the ksagiyam/allow_for_ghost_only_mesh branch from b21e65b to f391c06 Compare September 8, 2024 13:27
@ksagiyam ksagiyam requested a review from connorjward September 9, 2024 10:52
Copy link
Copy Markdown
Contributor

@connorjward connorjward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. I assume in Cython it is fine to replace if ilocal != NULL with if ilocal.

@ksagiyam
Copy link
Copy Markdown
Contributor Author

Thanks! I think it is fine.

@ksagiyam ksagiyam merged commit 34470e8 into master Sep 10, 2024
@ksagiyam ksagiyam deleted the ksagiyam/allow_for_ghost_only_mesh branch September 10, 2024 16:04
ksagiyam added a commit that referenced this pull request Sep 13, 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.

2 participants