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:
parent
a25bfd4513
commit
61e82c37b5
@ -64,7 +64,6 @@ void RicShowWellAllocationPlotFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
// Make sure the summary plot window is created and visible
|
// Make sure the summary plot window is created and visible
|
||||||
RiuMainPlotWindow* plotwindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
RiuMainPlotWindow* plotwindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
||||||
//RiaApplication::instance()->project()->updateConnectedEditors();
|
|
||||||
plotwindow->selectAsCurrentItem(flowPlotColl->defaultPlot());
|
plotwindow->selectAsCurrentItem(flowPlotColl->defaultPlot());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,13 @@ void RimWellAllocationPlot::setFromSimulationWell(RimEclipseWell* simWell)
|
|||||||
m_wellName = simWell->wellResults()->m_wellName;
|
m_wellName = simWell->wellResults()->m_wellName;
|
||||||
m_timeStep = eclView->currentTimeStep();
|
m_timeStep = eclView->currentTimeStep();
|
||||||
|
|
||||||
|
// Use the active flow diag solutions, or the first one as default
|
||||||
m_flowDiagSolution = eclView->cellResult()->flowDiagSolution();
|
m_flowDiagSolution = eclView->cellResult()->flowDiagSolution();
|
||||||
|
if ( !m_flowDiagSolution )
|
||||||
|
{
|
||||||
|
std::vector<RimFlowDiagSolution*> flowSolutions = m_case->flowDiagSolutions();
|
||||||
|
if ( flowSolutions.size() ) m_flowDiagSolution = flowSolutions.front();
|
||||||
|
}
|
||||||
|
|
||||||
loadDataAndUpdate();
|
loadDataAndUpdate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user