Return true when a dynamic result has only one time step

p4#: 21226
This commit is contained in:
Magne Sjaastad 2013-04-10 14:55:50 +02:00
parent ff1dcd8c8d
commit 687bc8aecf

View File

@ -183,10 +183,21 @@ bool RimResultDefinition::hasResult() const
bool RimResultDefinition::hasDynamicResult() const
{
const RigCaseCellResultsData* gridCellResults = m_reservoirView->currentGridCellResults()->cellResults();
if (hasResult() && gridCellResults->timeStepCount(m_gridScalarResultIndex) > 1 )
return true;
else
return false;
if (hasResult())
{
if (resultType() == RimDefines::DYNAMIC_NATIVE)
{
return true;
}
if (gridCellResults->timeStepCount(m_gridScalarResultIndex) > 1 )
{
return true;
}
}
return false;
}
//--------------------------------------------------------------------------------------------------