#4571 Sum. cmd. line: Add support for -s, -n and -e to grid cell plotting

This commit is contained in:
Jacob Støren
2019-08-22 08:34:49 +02:00
committed by Gaute Lindkvist
parent 889577400a
commit 11e73a76fc
4 changed files with 114 additions and 21 deletions

View File

@@ -991,7 +991,13 @@ std::vector<RigEclipseResultAddress> RigCaseCellResultsData::existingResults() c
//--------------------------------------------------------------------------------------------------
const RigEclipseResultInfo* RigCaseCellResultsData::resultInfo(const RigEclipseResultAddress& resVarAddr) const
{
return &(m_resultInfos[findScalarResultIndexFromAddress(resVarAddr)]);
size_t index = findScalarResultIndexFromAddress(resVarAddr);
if (index < m_resultInfos.size())
{
return &(m_resultInfos[index]);
}
return nullptr;
}
//--------------------------------------------------------------------------------------------------