mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Faults: Skip out of range cell index
This commit is contained in:
@@ -166,6 +166,8 @@ void RivFaultGeometryGenerator::computeArrays()
|
||||
size_t cellIndex = faultFaces[fIdx].m_nativeReservoirCellIndex;
|
||||
cvf::StructGridInterface::FaceType face = faultFaces[fIdx].m_nativeFace;
|
||||
|
||||
if (cellIndex >= m_cellVisibility->size()) continue;
|
||||
|
||||
if (!m_computeNativeFaultFaces)
|
||||
{
|
||||
cellIndex = faultFaces[fIdx].m_oppositeReservoirCellIndex;
|
||||
|
||||
Reference in New Issue
Block a user