mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-10 16:25:30 -06:00
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:
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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user