Skip to content

Conversation

@aritorto
Copy link
Member

@aritorto aritorto commented Aug 1, 2025

We expect the ids of Entity and EntityRep to only coincide in the level zero grid, for CpGrid with LGRs.
In serial execution, this works as intended.

Grid level / Method addLgrsUpdateLeafView() adapt() globalRefine(1)
Expected (serial execution)
level zero grid coincide coincide coincide
refined level grid differ differ differ
leaf grid differ differ differ

However, tests show that in parallel execution, they also coincide in refined and leaf grids.

Grid level / Method addLgrsUpdateLeafView() adapt() globalRefine(1)
Observed (parallel execution)
level zero grid coincide coincide coincide
refined level grid coincide(!!!) differ coincide(!!!)
leaf grid coincide(!!!) coincide(!!!) coincide(!!!)

Potential reason: global_id_set_ is not populated for each refined level and leaf grid, then the computation is triggered "on the fly" for each element. Precisely, for a LevelGlobalIdSet levelGlobalIdSet, idSet_ is nullptr and then getMapping is used.

Another alternative is implemented in #898.

@aritorto aritorto force-pushed the add-test-idLevelZero branch from 1ee0060 to 9cc0757 Compare August 1, 2025 08:38
@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

@aritorto aritorto force-pushed the add-test-idLevelZero branch from 9cc0757 to 69089ed Compare August 8, 2025 07:00
@aritorto
Copy link
Member Author

aritorto commented Aug 8, 2025

jenkins build this serial please

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