mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
#14324 Avoid crash in Mobile Pore Volume when SWCR/MULTPV size differs from PORV
This commit is contained in:
1 parent
1014c26da7
commit
189bf3e35c
3 files changed
+163
No files matched your search
+11
@@ -76,8 +76,19 @@ void RigMobilePoreVolumeResultCalculator::calculate( const RigEclipseResultAddre
|
||||
|
||||
swcrResults =
|
||||
RigCaseCellResultsData::getResultIndexableStaticResult( m_resultsData->activeCellInfo(), m_resultsData, "SWCR", swcrDataTemp );
|
||||
if ( swcrResults && swcrResults->size() != porvResults->size() )
|
||||
{
|
||||
RiaLogging::warning( "SWCR size mismatch with PORV. Ignoring SWCR in mobile pore volume calculation." );
|
||||
swcrResults = nullptr;
|
||||
}
|
||||
|
||||
multpvResults =
|
||||
RigCaseCellResultsData::getResultIndexableStaticResult( m_resultsData->activeCellInfo(), m_resultsData, "MULTPV", multpvDataTemp );
|
||||
if ( multpvResults && multpvResults->size() != porvResults->size() )
|
||||
{
|
||||
RiaLogging::warning( "MULTPV size mismatch with PORV. Ignoring MULTPV in mobile pore volume calculation." );
|
||||
multpvResults = nullptr;
|
||||
}
|
||||
|
||||
size_t mobPVIdx = m_resultsData->findOrCreateScalarResultIndex( RigEclipseResultAddress( RiaDefines::ResultCatType::STATIC_NATIVE,
|
||||
RiaResultNames::mobilePoreVolumeName() ),
|
||||
|
||||
Reference in new issue
Block a user