mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 15:10:09 -05:00
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.