#10475 Support delta computations for generated results

Add support for RiaDefines::ResultCatType::GENERATED in the condition
This commit is contained in:
Magne Sjaastad 2023-08-07 11:43:51 +02:00
parent 2172199999
commit 20d762fa33

View File

@ -1818,7 +1818,9 @@ bool RimEclipseResultDefinition::isDeltaResultEnabled() const
//--------------------------------------------------------------------------------------------------
bool RimEclipseResultDefinition::isDeltaTimeStepPossible() const
{
return isDeltaResultEnabled() && m_resultTypeUiField() == RiaDefines::ResultCatType::DYNAMIC_NATIVE && !isTernarySaturationSelected();
return isDeltaResultEnabled() && !isTernarySaturationSelected() &&
( m_resultTypeUiField() == RiaDefines::ResultCatType::DYNAMIC_NATIVE ||
m_resultTypeUiField() == RiaDefines::ResultCatType::GENERATED );
}
//--------------------------------------------------------------------------------------------------