mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4571 Sum. cmd. line: Add support for -s, -n and -e to grid cell plotting
This commit is contained in:
committed by
Gaute Lindkvist
parent
889577400a
commit
11e73a76fc
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user