mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 12:47:42 -06:00
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.