#13275 Import available phases from INIT and UNRST

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
This commit is contained in:
Magne Sjaastad
2025-12-04 14:51:07 +01:00
parent bcb930f36a
commit c00da5e8e1
9 changed files with 139 additions and 22 deletions
@@ -855,3 +855,19 @@ const std::vector<double>* RigEclipseCaseData::resultValues( RiaDefines::Porosit
return swatResults;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::set<RiaDefines::PhaseType> RigEclipseCaseData::availablePhases() const
{
return m_availablePhases;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigEclipseCaseData::setAvailablePhases( const std::set<RiaDefines::PhaseType>& phases )
{
m_availablePhases = phases;
}