#1698 Use opm-flowdiagnostics calculation of fluxes if not present in Eclipse restart file

This commit is contained in:
Bjørnar Grip Fjær
2017-08-10 10:09:01 +02:00
parent 7cf1c82142
commit 747721a7f8
5 changed files with 70 additions and 23 deletions

View File

@@ -136,14 +136,11 @@ bool RimEclipseResultCase::openEclipseGridFile()
m_gridAndWellDataIsReadFromFile = true;
m_activeCellInfoIsReadFromFile = true;
if (eclipseCaseData()->results(RifReaderInterface::MATRIX_RESULTS)->hasFlowDiagUsableFluxes())
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
if (m_flowDiagSolutions.size() == 0)
{
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
if (m_flowDiagSolutions.size() == 0)
{
m_flowDiagSolutions.push_back(new RimFlowDiagSolution());
}
m_flowDiagSolutions.push_back(new RimFlowDiagSolution());
}
return true;