#7660 Imported Input Properties should be time step independent

This commit is contained in:
Magne Sjaastad committed 2021-06-04 12:12:50 +02:00
1 parent e1e7201b9b
commit 7ecd9b462a
1 file changed
+7
@@ -100,6 +100,13 @@ cvf::ref<RigResultAccessor> RigResultAccessorFactory::createFromResultAddress( c
{
adjustedTimeStepIndex = 0;
}
else if ( resVarAddr.resultCatType() == RiaDefines::ResultCatType::INPUT_PROPERTY )
{
if ( eclipseCase->results( porosityModel )->timeStepCount( resVarAddr ) == 1 )
{
adjustedTimeStepIndex = 0;
}
}
cvf::ref<RigResultAccessor> derivedCandidate =
createCombinedResultAccessor( eclipseCase, gridIndex, porosityModel, adjustedTimeStepIndex, resVarAddr );