Skip to content

Move getAutoChokeGroupProductionTargetRate() to GroupStateHelper#6837

Merged
totto82 merged 1 commit intoOPM:masterfrom
hakonhagland:refact_wgc
Feb 20, 2026
Merged

Move getAutoChokeGroupProductionTargetRate() to GroupStateHelper#6837
totto82 merged 1 commit intoOPM:masterfrom
hakonhagland:refact_wgc

Conversation

@hakonhagland
Copy link
Copy Markdown
Contributor

Builds on #6835 which should be merged first.

  • Move getAutoChokeGroupProductionTargetRate() from WellGroupControls (static method) to GroupStateHelper (member method). The method has no well dependency and manually reimplements chain iteration already available as applyReductionsAndFractions_().

  • Delegate to applyReductionsAndFractions_() with do_addback=false and the actual getLocalReductionLevel_() value, replacing the manual reduction loop.

  • Make getLocalReductionLevel_() private again, reverting the visibility change from Add tests and fix autochoke group target rate #6835, since its only external caller was the now-removed static method in WellGroupControls.

@hakonhagland hakonhagland added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Feb 17, 2026
@hakonhagland
Copy link
Copy Markdown
Contributor Author

jenkins build this serial please

@hakonhagland hakonhagland marked this pull request as draft February 17, 2026 13:44
@hakonhagland
Copy link
Copy Markdown
Contributor Author

Putting this in draft mode until #6835 has been merged

@hakonhagland
Copy link
Copy Markdown
Contributor Author

jenkins build this serial please

Move getAutoChokeGroupProductionTargetRate() from
WellGroupControls (static method) to GroupStateHelper
(member method). The method has no well dependency and
manually reimplements chain iteration already available
as applyReductionsAndFractions_().

The moved implementation delegates to
applyReductionsAndFractions_() with do_addback=false
and the actual getLocalReductionLevel_() value, replacing
the manual reduction loop.

Make getLocalReductionLevel_() private again (reverting
the visibility change from the previous commit), since
its only external caller was the now-removed static
method in WellGroupControls.

Remove unused FractionCalculator.hpp include from
WellGroupControls.cpp and WellGroupControls.hpp include
from BlackoilWellModelNetwork_impl.hpp and the test file.
@hakonhagland
Copy link
Copy Markdown
Contributor Author

jenkins build this serial please

@hakonhagland hakonhagland marked this pull request as ready for review February 19, 2026 19:18
@totto82 totto82 merged commit f29e84d into OPM:master Feb 20, 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