#8069 Summary ESMRY : Improve robustness and error reporting

This commit is contained in:
Magne Sjaastad
2021-09-29 13:59:44 +02:00
parent 6440bd5b8d
commit e5e1f59aef
2 changed files with 32 additions and 6 deletions

View File

@@ -124,7 +124,11 @@ std::string RifOpmHdf5Summary::unitName( const RifEclipseSummaryAddress& resultA
{
auto index = it->second;
auto node = m_eSmry->summaryNodeList()[index];
return m_eSmry->get_unit( node );
if ( m_eSmry->hasKey( node.keyword ) )
{
return m_eSmry->get_unit( node );
}
}
}