Skip to content

Conversation

@hakonhagland
Copy link
Contributor

@hakonhagland hakonhagland commented Dec 22, 2025

Depends on OPM/opm-common#4876.

This commit extends the test_group_higher_constraints test with:

  • Extended the testing group hierarchy: Added MANI-2 group (with WELL-B) under PLAT to create realistic group competition scenarios where fractions < 1.0.
  • Added three new tests for getWellGroupTargetProducer()
  • The first test (the original test) still tests the addback efficiency value in checkGroupContraintsProd()

@hakonhagland hakonhagland added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Dec 22, 2025
@hakonhagland
Copy link
Contributor Author

The jenkins build will be here OPM/opm-common#4876

This commit extends the test_group_higher_constraints test suite with:

1. Extended hierarchy: Added MANI-2 group (with WELL-B) under PLAT to
   create realistic group competition scenarios where fractions < 1.0.
   The new hierarchy is:

     FIELD -> PLAT -> MANI -> WELL-A, WELL-A2
                   -> MANI-2 -> WELL-B
           -> PLAT-2 -> WELL-C

2. New tests for getWellGroupTargetProducer():
   - TestWellGroupTargetProducerIndividualControl: WELL-A under ORAT
   - TestWellGroupTargetProducerGrupControl: WELL-A under GRUP
   - TestWellGroupTargetProducerWithSiblingIndividualControl: WELL-A
     under GRUP with sibling WELL-A2 under ORAT (demonstrates case
     where reduction != addback)

3. Updated existing tests:
   - TestGroupHigherConstraintsWithGuideRate: scale now 0.922 (was 1.39)
   - TestGroupHigherConstraintsProdWithoutGuideRate: scale now 0.901
@hakonhagland
Copy link
Contributor Author

jenkins build this please

@hakonhagland
Copy link
Contributor Author

jenkins build this please

@hakonhagland
Copy link
Contributor Author

jenkins build this please

@hakonhagland hakonhagland requested a review from totto82 January 5, 2026 06:16
@totto82
Copy link
Member

totto82 commented Jan 9, 2026

Thanks for adding more tests for the group control logic. I think we should extend these tests even further to also cover other cases and injectors, but that is for another day. I have reviewed the tests, and from my perspective, they both test what they claim to test, and the results are as expected. I.e., I will merge as is to allow for further extensions in #6711

@totto82 totto82 merged commit 243f8fc into OPM:master Jan 9, 2026
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