mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-30 17:42:13 -06:00
This change centralizes the logic for determining available phases from various file formats (ECL, OPM) and data structures (INTEHEAD keyword) into a single, well-defined function. The new `RiaOpmParserTools::phasesFromInteheadValue` function now handles the conversion from an integer phase indicator to a set of `PhaseType` enums. This function is used in both the ECL and OPM readers. Updates the `RifEclipseUnifiedRestartFileAccess` and `RifReaderEclipseOutput` to use `RifEclipseOutputFileTools::findAvailablePhases` to get the available phases