#3990 Flow Diag : Move creation of RigFlowDiagSolverInterface before computeCachedData

computeCachedData triggers update of UI, and update of curves can require RigFlowDiagSolverInterface
This commit is contained in:
Magne Sjaastad 2019-01-29 11:54:39 +01:00
parent 7a50fa12f8
commit c50d75a61f

View File

@ -190,6 +190,8 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter)
progInfo.incrementProgress();
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
CVF_ASSERT(this->eclipseCaseData());
CVF_ASSERT(readerInterface.notNull());
@ -199,8 +201,6 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter)
m_gridAndWellDataIsReadFromFile = true;
m_activeCellInfoIsReadFromFile = true;
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
QFileInfo eclipseCaseFileInfo(caseFileName());
QString rftFileName = eclipseCaseFileInfo.path() + "/" + eclipseCaseFileInfo.completeBaseName() + ".RFT";
QFileInfo rftFileInfo(rftFileName);