#7660 Imported Input Properties should be time step independent

This commit is contained in:
Magne Sjaastad 2021-06-04 08:49:43 +02:00
parent e1e7201b9b
commit 7ecd9b462a

View File

@ -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 );