mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1210 Using defult flow diag results if available when creating Well Alloc Plots
This commit is contained in:
@@ -116,7 +116,13 @@ void RimWellAllocationPlot::setFromSimulationWell(RimEclipseWell* simWell)
|
||||
m_wellName = simWell->wellResults()->m_wellName;
|
||||
m_timeStep = eclView->currentTimeStep();
|
||||
|
||||
// Use the active flow diag solutions, or the first one as default
|
||||
m_flowDiagSolution = eclView->cellResult()->flowDiagSolution();
|
||||
if ( !m_flowDiagSolution )
|
||||
{
|
||||
std::vector<RimFlowDiagSolution*> flowSolutions = m_case->flowDiagSolutions();
|
||||
if ( flowSolutions.size() ) m_flowDiagSolution = flowSolutions.front();
|
||||
}
|
||||
|
||||
loadDataAndUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user