mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user