Add one and only one flow diag solution if flux is available

This commit is contained in:
Magne Sjaastad 2017-02-02 11:45:29 +01:00
parent eee43ccf0f
commit e48c9c0e10

View File

@ -134,8 +134,12 @@ bool RimEclipseResultCase::openEclipseGridFile()
if (reservoirData()->results(RifReaderInterface::MATRIX_RESULTS)->hasFlowDiagUsableFluxes())
{
m_flowDiagSolutions.push_back( new RimFlowDiagSolution());
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
if (m_flowDiagSolutions.size() == 0)
{
m_flowDiagSolutions.push_back(new RimFlowDiagSolution());
}
}
return true;