From 04e5ccfd7e8fd8191144100a60f4026d5420ce4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Thu, 7 Dec 2017 19:31:28 +0100 Subject: [PATCH] #2238 Lift limitation of plotting Flooded PV as time history curve --- .../SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp | 2 +- ApplicationCode/UserInterface/RiuSelectionChangedHandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp index c08e1fe156..9b1a683ea1 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp @@ -211,7 +211,7 @@ bool RicNewGridTimeHistoryCurveFeature::isCommandEnabled() const RiuEclipseSelectionItem* eclSelectionItem = dynamic_cast(items[0]); if (eclSelectionItem) { - if (eclSelectionItem->m_view->cellResult()->isFlowDiagOrInjectionFlooding()) + if (eclSelectionItem->m_view->cellResult()->isFlowDiagOrInjectionFlooding() && eclSelectionItem->m_view->cellResult()->resultVariable() != RIG_NUM_FLOODED_PV) { return false; } diff --git a/ApplicationCode/UserInterface/RiuSelectionChangedHandler.cpp b/ApplicationCode/UserInterface/RiuSelectionChangedHandler.cpp index a1a4fbc8a3..d75604513f 100644 --- a/ApplicationCode/UserInterface/RiuSelectionChangedHandler.cpp +++ b/ApplicationCode/UserInterface/RiuSelectionChangedHandler.cpp @@ -127,7 +127,7 @@ void RiuSelectionChangedHandler::addCurveFromSelectionItem(const RiuEclipseSelec { RimEclipseView* eclipseView = eclipseSelectionItem->m_view.p(); - if (eclipseView->cellResult()->isFlowDiagOrInjectionFlooding()) + if (eclipseView->cellResult()->isFlowDiagOrInjectionFlooding() && eclipseView->cellResult()->resultVariable() != RIG_NUM_FLOODED_PV) { // NB! Do not read out data for flow results, as this can be a time consuming operation