#14324 Avoid crash in Mobile Pore Volume when SWCR/MULTPV size differs from PORV

This commit is contained in:
Magne Sjaastad committed 2026-06-26 17:09:04 +02:00
1 parent 1014c26da7
commit 189bf3e35c
3 files changed
+163

No files matched your search

@@ -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() ),