mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
if createEnhancedSummaryDataFiles() is true, always create and use ESRMY
If h5 file is present if folder, the h5 file is used before the ESMRY is recreated
This commit is contained in:
parent
752363a4b8
commit
eeeb3c40c6
@ -63,7 +63,7 @@ bool RifReaderEclipseSummary::open( const QString& headerFileName, RiaThreadSafe
|
||||
// Create reader as specified by the user using the following fallback strategy
|
||||
//
|
||||
// ESMRY
|
||||
// - if h5 file is present on disk
|
||||
// - if h5 file is present on disk and prefSummary->createEnhancedSummaryDataFiles() is false
|
||||
// - use h5 reader
|
||||
// - else
|
||||
// - create ESMRY file if defined in preference
|
||||
@ -91,8 +91,9 @@ bool RifReaderEclipseSummary::open( const QString& headerFileName, RiaThreadSafe
|
||||
|
||||
bool h5FileFound = QFile::exists( h5FileName );
|
||||
|
||||
if ( h5FileFound ||
|
||||
( prefSummary->summaryDataReader() == RiaPreferencesSummary::SummaryReaderMode::HDF5_OPM_COMMON ) )
|
||||
if ( !prefSummary->createEnhancedSummaryDataFiles() &&
|
||||
( h5FileFound ||
|
||||
( prefSummary->summaryDataReader() == RiaPreferencesSummary::SummaryReaderMode::HDF5_OPM_COMMON ) ) )
|
||||
{
|
||||
#ifdef USE_HDF5
|
||||
if ( prefSummary->createH5SummaryDataFiles() )
|
||||
|
Loading…
Reference in New Issue
Block a user