mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Add CAF_ASSERT to RigCaseCellResultsData::statistics
* Currently the code crashes in a dual porosity case. * This commit doesn't fix the problem but adds an assert which triggers instead of just crashing
This commit is contained in:
1 parent
debf15bbbe
commit
6864888591
1 file changed
+3
-1
@@ -2808,7 +2808,9 @@ void RigCaseCellResultsData::assignValuesToTemporaryLgrs(const QString& re
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigStatisticsDataCache* RigCaseCellResultsData::statistics(const RigEclipseResultAddress& resVarAddr)
|
||||
{
|
||||
return m_statisticsDataCache[findScalarResultIndexFromAddress(resVarAddr)].p();
|
||||
size_t scalarResultIndex = findScalarResultIndexFromAddress(resVarAddr);
|
||||
CAF_ASSERT(scalarResultIndex < m_statisticsDataCache.size());
|
||||
return m_statisticsDataCache[scalarResultIndex].p();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user