Make opm summary reader work with mixed casing (#7593)

* #7592 opm-common : Add case insensitive file search
* #7592 opm-common : Find file based on case insensitive search
* #7592 opm-common : Improve error messages
This commit is contained in:
Magne Sjaastad
2021-04-19 16:40:29 +02:00
committed by GitHub
parent b2d475dde2
commit a6277c0ddc
5 changed files with 88 additions and 8 deletions

View File

@@ -197,17 +197,16 @@ bool RifReaderEclipseSummary::open( const QString& headerFileName,
bool useLodsmryFiles = prefSummary->useOptimizedSummaryDataFiles();
if ( useLodsmryFiles && includeRestartFiles )
{
QString txt = "LODSMRY file loading for summary restart files is not supported. Disable one of the options";
if ( threadSafeLogger ) threadSafeLogger->error( txt );
return false;
QString txt =
"LODSMRY file loading for summary restart files is not supported. Restart history might be incomplete.";
if ( threadSafeLogger ) threadSafeLogger->warning( txt );
}
m_opmCommonReader = std::make_unique<RifOpmCommonEclipseSummary>();
m_opmCommonReader->useLodsmaryFiles( prefSummary->useOptimizedSummaryDataFiles() );
m_opmCommonReader->createLodsmaryFiles( prefSummary->createOptimizedSummaryDataFiles() );
isValid = m_opmCommonReader->open( headerFileName, includeRestartFiles, threadSafeLogger );
isValid = m_opmCommonReader->open( headerFileName, false, threadSafeLogger );
if ( !isValid ) m_opmCommonReader.reset();
}