mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Add extra checks for result indexes and update opm-common with dual poro fixes
This commit is contained in:
1 parent
c0b881ce7d
commit
e0893cfa6f
3 files changed
+3
-2
No files matched your search
+1
-1
@@ -77,7 +77,7 @@ void RigCellVolumeResultCalculator::calculate( const RigEclipseResultAddress& re
|
||||
nativeResvCellIndex++ )
|
||||
{
|
||||
size_t resultIndex = m_resultsData->activeCellInfo()->cellResultIndex( nativeResvCellIndex );
|
||||
if ( resultIndex != cvf::UNDEFINED_SIZE_T )
|
||||
if ( ( resultIndex != cvf::UNDEFINED_SIZE_T ) && ( resultIndex < cellResultCount ) )
|
||||
{
|
||||
const RigCell& cell = m_resultsData->m_ownerMainGrid->cell( nativeResvCellIndex );
|
||||
if ( !cell.subGrid() )
|
||||
|
||||
@@ -1906,6 +1906,7 @@ void RigCaseCellResultsData::computeDepthRelatedResults()
|
||||
|
||||
size_t resultIndex = activeCellInfo()->cellResultIndex( cellIdx );
|
||||
if ( resultIndex == cvf::UNDEFINED_SIZE_T ) continue;
|
||||
if ( resultIndex >= actCellCount ) continue;
|
||||
|
||||
bool isTemporaryGrid = cell.hostGrid()->isTempGrid();
|
||||
|
||||
|
||||
+1
-1
Submodule ThirdParty/custom-opm-common/opm-common updated: 1c58d7f14a...6fdaa25164.
Reference in new issue
Block a user