Skip to content

Add Entity/EntityRep ID comparison tests#949

Merged
aritorto merged 2 commits intoOPM:masterfrom
SoilRos:test/id-Entity-vs-EntityRep
Jan 26, 2026
Merged

Add Entity/EntityRep ID comparison tests#949
aritorto merged 2 commits intoOPM:masterfrom
SoilRos:test/id-Entity-vs-EntityRep

Conversation

@SoilRos
Copy link
Copy Markdown
Member

@SoilRos SoilRos commented Nov 14, 2025

This patch adds a test that compares the ids and indices for Entity and EntityRep. The idea is that we can split the two functionalities (because the are different) without breaking the current functionality.

This is a re-work of the test introduced by @aritorto in #905 and #898, but without the modifications to the index set yet.

From what I understand, the desired behavior is that Entity and EntityRep have the same global/local id at the level zero when the grid is not distributed. Otherwise, the ids should be different. This test shows that that is the case for local ids, but fails for global ids when the grid is in parallel.

The test case is marked with TODOs on the places that are not currently working according to my testing.

@SoilRos SoilRos self-assigned this Nov 14, 2025
@SoilRos SoilRos added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Nov 14, 2025
Copy link
Copy Markdown
Member

@aritorto aritorto left a comment

Choose a reason for hiding this comment

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

Nice clean-up and reorganization of the checks! I left a few comments and questions below : )

Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists_files.cmake Outdated
Comment thread tests/cpgrid/id_entity_entityrep.cpp Outdated
Comment thread tests/cpgrid/lgr/id_entity_entityrep_test.cpp
Comment thread tests/cpgrid/lgr/id_entity_entityrep_test.cpp
Comment thread tests/cpgrid/id_entity_entityrep.cpp Outdated
Comment thread tests/cpgrid/lgr/id_entity_entityrep_test.cpp
Comment thread tests/cpgrid/id_entity_entityrep.cpp Outdated
Comment thread tests/cpgrid/id_entity_entityrep.cpp Outdated
Comment thread tests/cpgrid/lgr/id_entity_entityrep_test.cpp
@SoilRos SoilRos force-pushed the test/id-Entity-vs-EntityRep branch from 715ae3f to 9f113ed Compare December 11, 2025 17:29
@SoilRos
Copy link
Copy Markdown
Member Author

SoilRos commented Dec 11, 2025

jenkins build this please

1 similar comment
@SoilRos
Copy link
Copy Markdown
Member Author

SoilRos commented Dec 11, 2025

jenkins build this please

@SoilRos SoilRos force-pushed the test/id-Entity-vs-EntityRep branch from f944ada to 0c9c5c4 Compare January 20, 2026 15:41
This patch adds a test that compares the ids and indices for Entity and EntityRep. The idea is that we can split the two functionalities (because the are different) without breaking the current functionality.
Add descriptions that reflect and explain better what is being tested, including the reasoning behind some TODOs.
@SoilRos SoilRos force-pushed the test/id-Entity-vs-EntityRep branch from 0c9c5c4 to 0a9c5b0 Compare January 20, 2026 15:42
@SoilRos
Copy link
Copy Markdown
Member Author

SoilRos commented Jan 20, 2026

jenkins build this please

@aritorto
Copy link
Copy Markdown
Member

@SoilRos thanks for the update, one last jenkins call before merging

@aritorto
Copy link
Copy Markdown
Member

jenkins build this serial please

@aritorto
Copy link
Copy Markdown
Member

No test fails, that's great. However, there are 40 warnings (previous build has 21, not sure where the difference comes from). @SoilRos, do you see any way to silence/reduce (some of) them?

@akva2
Copy link
Copy Markdown
Member

akva2 commented Jan 26, 2026

they are duplicated due to the extra configuration, there are no new warnings introduced by this PR.

@aritorto
Copy link
Copy Markdown
Member

Thanks for clarifying @akva2, then this is ready to be merged!

@aritorto aritorto self-requested a review January 26, 2026 09:12
@aritorto aritorto merged commit 26c8f1f into OPM:master Jan 26, 2026
2 checks passed
@SoilRos SoilRos deleted the test/id-Entity-vs-EntityRep branch February 13, 2026 13:01
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.

3 participants