mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#13095 Avoid error message trying to read data not present in file
This commit is contained in:
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 )
|
||||
|
||||
Reference in new issue
Block a user