Files
opm-simulators/opm/simulators
Håkon Hægland a49aab171e Simplify GroupTargetCalculator by delegating to GroupStateHelper
Eliminate complicated variant handling in initForInjector_() and
initForProducer_(). The code previously required knowledge of std::variant
internals to understand.

Changes:
- Add getInjectionGuideTargetMode() and getProductionGuideTargetMode()
  to GroupStateHelper, delegating the Phase/CMode to GuideRateModel::Target
  conversion
- Refactor initForInjector_() and initForProducer_() to construct
  calculators directly instead of going through variant intermediaries
- Merge getTargetFromCalculator() and getTargetNoGuideRate() into
  getGroupTargetNoGuideRate(), eliminating redundant method and
  unused variant parameter
- Call GroupStateHelper directly for groupTarget() instead of extracting
  from variant

The variant type is still used for calcModeRateFromRates() which requires
the polymorphic behavior.
2026-01-26 12:02:19 +01:00
..
2026-01-12 09:50:36 +01:00