Fixed crash when activating riMULT

This commit is contained in:
Magne Sjaastad 2014-09-03 07:35:23 +02:00
parent 6857bd3122
commit 7daf170f99

View File

@ -1026,6 +1026,8 @@ void RimReservoirCellResultsStorage::computeNncCombRiTrans()
break;
}
if (!permIdxFunc) continue;
// Do nothing if we are only dealing with active cells, and this cell is not active:
size_t nativeCellPermResIdx = (*permIdxFunc)(activeCellInfo, nativeResvCellIndex);
if (nativeCellPermResIdx == cvf::UNDEFINED_SIZE_T) continue;