mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add support for grid import using opm-common
Add support for import of geometry and results for main grid. Currently no support for LGR. Add selection in Preferences to either use libecl or opm-common for grid import. If RESINSIGHT_DEVEL flag is set, display reader in an Eclipse case to make it possible to compare Eclipse and opm-common in same project. Add more includes to custom-opm-common to be able to support this functionality. opm-common is unchanged.
This commit is contained in:
@@ -54,6 +54,11 @@ bool RigCellVolumeResultCalculator::isMatching( const RigEclipseResultAddress& r
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigCellVolumeResultCalculator::calculate( const RigEclipseResultAddress& resVarAddr, size_t timeStepIndex )
|
||||
{
|
||||
if ( m_resultsData->activeCellInfo()->reservoirActiveCellCount() == 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
size_t cellVolIdx = m_resultsData->findOrCreateScalarResultIndex( RigEclipseResultAddress( RiaDefines::ResultCatType::STATIC_NATIVE,
|
||||
RiaResultNames::riCellVolumeResultName() ),
|
||||
false );
|
||||
|
||||
@@ -292,6 +292,14 @@ bool RigSimWellData::isMultiSegmentWell() const
|
||||
return m_isMultiSegmentWell;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigSimWellData::setWellName( const QString& wellName )
|
||||
{
|
||||
m_wellName = wellName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
void setMultiSegmentWell( bool isMultiSegmentWell );
|
||||
bool isMultiSegmentWell() const;
|
||||
|
||||
void setWellName( const QString& wellName );
|
||||
|
||||
bool hasWellResult( size_t resultTimeStepIndex ) const;
|
||||
bool hasAnyValidCells( size_t resultTimeStepIndex ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user