Bugfix statistics: Trigger loading of dataset before creating a result accessor

This commit is contained in:
Magne Sjaastad 2014-08-12 10:54:46 +02:00
parent 8c22508e82
commit afa130a634

View File

@ -196,6 +196,9 @@ void RimStatisticsCaseEvaluator::evaluateForResults(const QList<ResSpec>& result
{
RimCase* sourceCase = m_sourceCases.at(caseIdx);
// Trigger loading of dataset
sourceCase->results(poroModel)->findOrLoadScalarResultForTimeStep(resultType, resultName, dataAccessTimeStepIndex);
cvf::ref<RigResultAccessor> resultAccessor = RigResultAccessorFactory::createResultAccessor(sourceCase->reservoirData(), gridIdx, poroModel, dataAccessTimeStepIndex, resultName, resultType);
if (resultAccessor.notNull())
{