Skip to content

Conversation

@aritorto
Copy link
Member

@aritorto aritorto commented Aug 1, 2025

PR #898 avoids implicit derived-to-base conversion (use Entity instead of EntityRep) by overloading id with explicit types Entity, codim = 0 and 3, ensuring the correct ids are used for Entity<0> and Entity<3> in CpGrid with LGRs.

To ensure that IDs are correctly handled in all possible refinement scenarios, one of the test cases invokes adapt() in both the global and distributed views, followed by synchronization of cell IDs. This is where the issue with an empty pointMapping_ arose. This PR provides a fix for it.

@aritorto aritorto added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Aug 1, 2025
@aritorto
Copy link
Member Author

aritorto commented Aug 1, 2025

jenkins build this serial please

Copy link
Member

@blattms blattms left a comment

Choose a reason for hiding this comment

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

Thanks a lot.
Nice catch. Just a small typo in the comment.

@aritorto
Copy link
Member Author

jenkins build this serial please

@aritorto
Copy link
Member Author

jenkins build this serial please

@blattms blattms merged commit 47db457 into OPM:master Aug 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants