mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4049 3D calculations : Use _dt_<time step index> to indicate time differenc
This commit is contained in:
parent
7ea2a907ad
commit
f631321ad1
@ -782,12 +782,10 @@ QString RimEclipseResultDefinition::resultVariableUiName() const
|
||||
|
||||
if (m_isTimeLapseResult() && resultType() == RiaDefines::DYNAMIC_NATIVE)
|
||||
{
|
||||
return m_resultVariable() + "_D" + QString::number(m_timeLapseBaseTimestep());
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_resultVariable();
|
||||
return timeDiffResultName(m_resultVariable(), m_timeLapseBaseTimestep());
|
||||
}
|
||||
|
||||
return m_resultVariable();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -802,12 +800,10 @@ QString RimEclipseResultDefinition::resultVariableUiShortName() const
|
||||
|
||||
if (m_isTimeLapseResult() && resultType() == RiaDefines::DYNAMIC_NATIVE)
|
||||
{
|
||||
return m_resultVariable() + "_D" + QString::number(m_timeLapseBaseTimestep());
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_resultVariable();
|
||||
return timeDiffResultName(m_resultVariable(), m_timeLapseBaseTimestep());
|
||||
}
|
||||
|
||||
return m_resultVariable();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1314,19 +1310,26 @@ QString RimEclipseResultDefinition::flowDiagResUiText(bool shortLabel, int maxTr
|
||||
return uiText;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimEclipseResultDefinition::timeDiffResultName(const QString& resultName, int timeStepIndex)
|
||||
{
|
||||
return resultName + "_dt_" + QString::number(timeStepIndex);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimEclipseResultDefinition::convertToTimeDiffUiVarName(const QString& resultName)
|
||||
{
|
||||
if (m_isTimeLapseResultUiField() && m_resultTypeUiField() == RiaDefines::DYNAMIC_NATIVE)
|
||||
if (m_isTimeLapseResultUiField() &&
|
||||
(m_resultTypeUiField() == RiaDefines::DYNAMIC_NATIVE || m_resultTypeUiField() == RiaDefines::GENERATED))
|
||||
{
|
||||
return resultName + "_D" + QString::number(m_timeLapseBaseTimestepUiField());
|
||||
}
|
||||
else
|
||||
{
|
||||
return resultName;
|
||||
return timeDiffResultName(resultName, m_timeLapseBaseTimestepUiField());
|
||||
}
|
||||
|
||||
return resultName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -178,6 +178,7 @@ private:
|
||||
bool hasDualPorFractureResult();
|
||||
|
||||
QString flowDiagResUiText(bool shortLabel, int maxTracerStringLength = std::numeric_limits<int>::max()) const;
|
||||
static QString timeDiffResultName(const QString& resultName, int timeStepIndex);
|
||||
|
||||
QString convertToTimeDiffUiVarName(const QString& resultName);
|
||||
QList<caf::PdmOptionItemInfo> calcOptionsForVariableUiFieldStandard();
|
||||
|
Loading…
Reference in New Issue
Block a user