mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7563 HDF5 Export : Add flag to generated HDF5, default off
Fixes by cmake-format Try to fix copy constructor issues Fix missing initialization Unused variable
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "RifReaderEclipseOutput.h"
|
||||
|
||||
#ifdef USE_HDF5
|
||||
#include "RifHdf5SummaryExporter.h"
|
||||
#include "RifOpmHdf5Summary.h"
|
||||
#endif
|
||||
|
||||
@@ -162,6 +163,15 @@ bool RifReaderEclipseSummary::open( const QString& headerFileName,
|
||||
if ( RiaPreferences::current()->summaryDataReader() == RiaPreferences::SummaryReaderMode::HDF5_OPM_COMMON )
|
||||
{
|
||||
#ifdef USE_HDF5
|
||||
if ( RiaPreferences::current()->createH5SummaryDataFiles() )
|
||||
{
|
||||
QFileInfo fi( headerFileName );
|
||||
QString h5FilenameCandidate = fi.absolutePath() + "/" + fi.baseName() + ".h5";
|
||||
|
||||
RifHdf5SummaryExporter::ensureHdf5FileIsCreated( headerFileName.toStdString(),
|
||||
h5FilenameCandidate.toStdString() );
|
||||
}
|
||||
|
||||
auto hdfReader = std::make_unique<RifOpmHdf5Summary>();
|
||||
|
||||
isValid = hdfReader->open( headerFileName, false, threadSafeLogger );
|
||||
|
||||
Reference in New Issue
Block a user