mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1763 Hide soursim file field and result category if HDF5 support is not compiled in
This commit is contained in:
@@ -494,7 +494,7 @@ void RifReaderEclipseOutput::setHdf5FileName(const QString& fileName)
|
|||||||
if (hdfTimeSteps.size() != m_timeSteps.size())
|
if (hdfTimeSteps.size() != m_timeSteps.size())
|
||||||
{
|
{
|
||||||
RiaLogging::error("HDF: Time step count does not match");
|
RiaLogging::error("HDF: Time step count does not match");
|
||||||
RiaLogging::error(QString("HDF: Elicpse count %1").arg(m_timeSteps.size()));
|
RiaLogging::error(QString("HDF: Eclipse count %1").arg(m_timeSteps.size()));
|
||||||
RiaLogging::error(QString("HDF: HDF count %1").arg(hdfTimeSteps.size()));
|
RiaLogging::error(QString("HDF: HDF count %1").arg(hdfTimeSteps.size()));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -509,7 +509,7 @@ void RifReaderEclipseOutput::setHdf5FileName(const QString& fileName)
|
|||||||
|
|
||||||
QString dateStr("yyyy.MMM.ddd hh:mm");
|
QString dateStr("yyyy.MMM.ddd hh:mm");
|
||||||
|
|
||||||
RiaLogging::error(QString("HDF: Elicpse date %1").arg(m_timeSteps[i].toString(dateStr)));
|
RiaLogging::error(QString("HDF: Eclipse date %1").arg(m_timeSteps[i].toString(dateStr)));
|
||||||
RiaLogging::error(QString("HDF: HDF date %1").arg(hdfTimeSteps[i].toString(dateStr)));
|
RiaLogging::error(QString("HDF: HDF date %1").arg(hdfTimeSteps[i].toString(dateStr)));
|
||||||
|
|
||||||
isTimeStampsEqual = false;
|
isTimeStampsEqual = false;
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ RimEclipseResultCase::RimEclipseResultCase()
|
|||||||
|
|
||||||
CAF_PDM_InitField(&m_sourSimFileName, "SourSimFileName", QString(), "SourSim File Name", "", "", "");
|
CAF_PDM_InitField(&m_sourSimFileName, "SourSimFileName", QString(), "SourSim File Name", "", "", "");
|
||||||
m_sourSimFileName.uiCapability()->setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());
|
m_sourSimFileName.uiCapability()->setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());
|
||||||
|
#ifndef USE_HDF5
|
||||||
|
m_sourSimFileName.uiCapability()->setUiHidden(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
m_activeCellInfoIsReadFromFile = false;
|
m_activeCellInfoIsReadFromFile = false;
|
||||||
m_gridAndWellDataIsReadFromFile = false;
|
m_gridAndWellDataIsReadFromFile = false;
|
||||||
|
|||||||
@@ -430,11 +430,16 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptions(
|
|||||||
hasSourSimRLFile = eclResCase->hasSourSimFile();
|
hasSourSimRLFile = eclResCase->hasSourSimFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef USE_HDF5
|
||||||
|
// If using ResInsight without HDF5 support, ignore SourSim files and
|
||||||
|
// do not show it as a result category.
|
||||||
|
hasSourSimRLFile = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
RimGridTimeHistoryCurve* timeHistoryCurve;
|
RimGridTimeHistoryCurve* timeHistoryCurve;
|
||||||
this->firstAncestorOrThisOfType(timeHistoryCurve);
|
this->firstAncestorOrThisOfType(timeHistoryCurve);
|
||||||
|
|
||||||
// Do not include flow diagnostics results if not available or is a time history curve
|
|
||||||
if ( !hasFlowDiagFluxes || timeHistoryCurve != nullptr || !hasSourSimRLFile)
|
if ( !hasFlowDiagFluxes || timeHistoryCurve != nullptr || !hasSourSimRLFile)
|
||||||
{
|
{
|
||||||
using ResCatEnum = caf::AppEnum< RimDefines::ResultCatType >;
|
using ResCatEnum = caf::AppEnum< RimDefines::ResultCatType >;
|
||||||
|
|||||||
Reference in New Issue
Block a user