mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge remote-tracking branch 'origin/main' into dev
This commit is contained in:
commit
0a8b52051d
@ -53,7 +53,7 @@ void RiaPreferencesSummary::SummaryReaderModeType::setUp()
|
||||
addItem( RiaPreferencesSummary::SummaryReaderMode::LIBECL, "LIBECL", "UNSMRY (libecl)" );
|
||||
addItem( RiaPreferencesSummary::SummaryReaderMode::HDF5_OPM_COMMON, "HDF5_OPM_COMMON", "h5 (HDF5)" );
|
||||
addItem( RiaPreferencesSummary::SummaryReaderMode::OPM_COMMON, "OPM_COMMON", "ESMRY (opm-common)" );
|
||||
setDefault( RiaPreferencesSummary::SummaryReaderMode::OPM_COMMON );
|
||||
setDefault( RiaPreferencesSummary::SummaryReaderMode::HDF5_OPM_COMMON );
|
||||
}
|
||||
} // namespace caf
|
||||
|
||||
@ -108,8 +108,8 @@ RiaPreferencesSummary::RiaPreferencesSummary()
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitField( &m_createEnhancedSummaryDataFile,
|
||||
"createEnhancedSummaryDataFile",
|
||||
true,
|
||||
"createEnhancedSummaryDataFile_v01",
|
||||
false,
|
||||
"Create ESMRY Summary Files",
|
||||
"",
|
||||
"If not present, create summary file with extension '*.ESMRY'",
|
||||
@ -126,23 +126,14 @@ RiaPreferencesSummary::RiaPreferencesSummary()
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_useEnhancedSummaryDataFile );
|
||||
|
||||
CAF_PDM_InitField( &m_createH5SummaryDataFile,
|
||||
"createH5SummaryDataFile",
|
||||
true,
|
||||
"createH5SummaryDataFile_v01",
|
||||
false,
|
||||
"Create h5 Summary Files",
|
||||
"",
|
||||
"If not present, create summary file with extension '*.h5'",
|
||||
"" );
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_createH5SummaryDataFile );
|
||||
|
||||
CAF_PDM_InitField( &m_checkH5FileTimeStamp,
|
||||
"checkH5FileTimeStamp",
|
||||
true,
|
||||
"Check File Timestamp",
|
||||
"",
|
||||
"Compare timestamp of h5 and SMSPEC, and recreate h5 when required",
|
||||
"" );
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_checkH5FileTimeStamp );
|
||||
|
||||
CAF_PDM_InitField( &m_createH5SummaryFileThreadCount,
|
||||
"createH5SummaryFileThreadCount",
|
||||
1,
|
||||
@ -151,7 +142,7 @@ RiaPreferencesSummary::RiaPreferencesSummary()
|
||||
"",
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_summaryReader, "summaryReaderType", "File Format" );
|
||||
CAF_PDM_InitFieldNoDefault( &m_summaryReader, "summaryReaderType_v01", "File Format");
|
||||
|
||||
CAF_PDM_InitField( &m_showSummaryTimeAsLongString,
|
||||
"showSummaryTimeAsLongString",
|
||||
@ -212,14 +203,6 @@ bool RiaPreferencesSummary::createH5SummaryDataFiles() const
|
||||
return m_createH5SummaryDataFile();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaPreferencesSummary::checkH5SummaryDataTimeStamp() const
|
||||
{
|
||||
return m_checkH5FileTimeStamp;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -338,13 +321,15 @@ void RiaPreferencesSummary::defineUiOrdering( QString uiConfigName, caf::PdmUiOr
|
||||
|
||||
if ( m_summaryReader == SummaryReaderMode::OPM_COMMON )
|
||||
{
|
||||
uiOrdering.add( &m_useEnhancedSummaryDataFile );
|
||||
if ( RiaApplication::instance()->enableDevelopmentFeatures() )
|
||||
{
|
||||
uiOrdering.add( &m_useEnhancedSummaryDataFile );
|
||||
}
|
||||
uiOrdering.add( &m_createEnhancedSummaryDataFile );
|
||||
}
|
||||
else if ( m_summaryReader == SummaryReaderMode::HDF5_OPM_COMMON )
|
||||
{
|
||||
uiOrdering.add( &m_createH5SummaryDataFile );
|
||||
uiOrdering.add( &m_checkH5FileTimeStamp );
|
||||
|
||||
if ( RiaApplication::instance()->enableDevelopmentFeatures() )
|
||||
{
|
||||
|
@ -64,7 +64,6 @@ public:
|
||||
bool createEnhancedSummaryDataFiles() const;
|
||||
|
||||
bool createH5SummaryDataFiles() const;
|
||||
bool checkH5SummaryDataTimeStamp() const;
|
||||
int createH5SummaryDataThreadCount() const;
|
||||
|
||||
void appendRestartFileGroup( caf::PdmUiOrdering& uiOrdering ) const;
|
||||
@ -102,7 +101,6 @@ private:
|
||||
caf::PdmField<bool> m_useEnhancedSummaryDataFile;
|
||||
|
||||
caf::PdmField<bool> m_createH5SummaryDataFile;
|
||||
caf::PdmField<bool> m_checkH5FileTimeStamp;
|
||||
caf::PdmField<int> m_createH5SummaryFileThreadCount;
|
||||
|
||||
caf::PdmField<SummaryReaderModeType> m_summaryReader;
|
||||
|
@ -89,15 +89,13 @@ bool RifHdf5SummaryExporter::ensureHdf5FileIsCreated( const std::string& smspecF
|
||||
|
||||
{
|
||||
bool h5FileExists = Opm::filesystem::exists( h5FileName );
|
||||
if ( !h5FileExists ) exportIsRequired = true;
|
||||
|
||||
RiaPreferencesSummary* prefs = RiaPreferencesSummary::current();
|
||||
if ( prefs->checkH5SummaryDataTimeStamp() && h5FileExists )
|
||||
if ( !h5FileExists )
|
||||
{
|
||||
if ( RifHdf5SummaryExporter::isFirstOlderThanSecond( h5FileName, smspecFileName ) )
|
||||
{
|
||||
exportIsRequired = true;
|
||||
}
|
||||
exportIsRequired = true;
|
||||
}
|
||||
else if ( RifHdf5SummaryExporter::isFirstOlderThanSecond( h5FileName, smspecFileName ) )
|
||||
{
|
||||
exportIsRequired = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
set(RESINSIGHT_MAJOR_VERSION 2021)
|
||||
set(RESINSIGHT_MINOR_VERSION 10)
|
||||
set(RESINSIGHT_PATCH_VERSION 1)
|
||||
set(RESINSIGHT_PATCH_VERSION 2)
|
||||
|
||||
# Opional text with no restrictions
|
||||
set(RESINSIGHT_VERSION_TEXT "-dev")
|
||||
|
Loading…
Reference in New Issue
Block a user