#13095 Avoid error message trying to read data not present in file

This commit is contained in:
Magne Sjaastad committed 2025-11-10 13:19:47 +01:00
1 parent be7a01d0cf
commit 5e7c3dd1f1
1 file changed
+3
@@ -642,6 +642,9 @@ bool RifReaderOpmCommon::dynamicResult( const QString& result,
{
for ( auto& gridName : m_gridNames )
{
// Do not try to read data that is not present in the file
if ( !m_restartFile->hasArray( resultName, stepNumber ) ) continue;
if ( gridName == "global" ) // main grid, need to use separate method due to inner workings in opm_common
{
if ( kwType == EclIO::eclArrType::DOUB )