mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add one and only one flow diag solution if flux is available
This commit is contained in:
@@ -134,8 +134,12 @@ bool RimEclipseResultCase::openEclipseGridFile()
|
|||||||
|
|
||||||
if (reservoirData()->results(RifReaderInterface::MATRIX_RESULTS)->hasFlowDiagUsableFluxes())
|
if (reservoirData()->results(RifReaderInterface::MATRIX_RESULTS)->hasFlowDiagUsableFluxes())
|
||||||
{
|
{
|
||||||
m_flowDiagSolutions.push_back( new RimFlowDiagSolution());
|
|
||||||
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
|
m_flowDagSolverInterface = new RigFlowDiagSolverInterface(this);
|
||||||
|
|
||||||
|
if (m_flowDiagSolutions.size() == 0)
|
||||||
|
{
|
||||||
|
m_flowDiagSolutions.push_back(new RimFlowDiagSolution());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user