mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Minor HDF adjustments (#7577)
* #7575 Summary HDF : Do not import summary if no UNSRMY file is found * #7575 Summary HDF : Add optional check on time stamp of h5 file * Use std::filesystem to check file access * Do not keep h5 file open
This commit is contained in:
@@ -171,10 +171,16 @@ bool RifReaderEclipseSummary::open( const QString& headerFileName,
|
||||
QFileInfo fi( headerFileName );
|
||||
QString h5FilenameCandidate = fi.absolutePath() + "/" + fi.baseName() + ".h5";
|
||||
|
||||
size_t dummy = 0;
|
||||
size_t createdH5FileCount = 0;
|
||||
RifHdf5SummaryExporter::ensureHdf5FileIsCreated( headerFileName.toStdString(),
|
||||
h5FilenameCandidate.toStdString(),
|
||||
dummy );
|
||||
createdH5FileCount );
|
||||
|
||||
if ( createdH5FileCount > 0 )
|
||||
{
|
||||
QString txt = QString( "Created %1 from file %2" ).arg( headerFileName ).arg( h5FilenameCandidate );
|
||||
if ( threadSafeLogger ) threadSafeLogger->info( txt );
|
||||
}
|
||||
}
|
||||
|
||||
auto hdfReader = std::make_unique<RifOpmHdf5Summary>();
|
||||
|
||||
Reference in New Issue
Block a user