Exclude inactive cells from contour map calculations

* Adds safety check for value index
* Filters inactive cells from contour map calculation
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-08-29 16:33:34 +02:00
1 parent d8566b679f
commit 7653bd80f3
9 files changed
+68 -1

No files matched your search

@@ -325,6 +325,19 @@ size_t RigEclipseContourMapProjection::gridResultIndex( size_t globalCellIdx ) c
return globalCellIdx;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RigEclipseContourMapProjection::isCellActive( size_t globalCellIdx ) const
{
if ( m_useActiveCellInfo && m_activeCellInfo.notNull() )
{
return m_activeCellInfo->isActive( globalCellIdx );
}
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------