diff --git a/ApplicationCode/FileInterface/RifEclipseRftAddress.h b/ApplicationCode/FileInterface/RifEclipseRftAddress.h index 8fa807829f..7bd47a0ed0 100644 --- a/ApplicationCode/FileInterface/RifEclipseRftAddress.h +++ b/ApplicationCode/FileInterface/RifEclipseRftAddress.h @@ -68,7 +68,12 @@ public: static std::set rftPlotChannelTypes() { - return {RifEclipseRftAddress::PRESSURE}; + return {RifEclipseRftAddress::PRESSURE, + RifEclipseRftAddress::PRESSURE_ERROR, + RifEclipseRftAddress::PRESSURE_MEAN, + RifEclipseRftAddress::PRESSURE_P10, + RifEclipseRftAddress::PRESSURE_P50, + RifEclipseRftAddress::PRESSURE_P90}; } static std::set pltPlotChannelTypes() diff --git a/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp index f20599cccc..095aea28a0 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimWellRftPlot.cpp @@ -150,9 +150,12 @@ void RimWellRftPlot::applyCurveAppearance( RimWellLogCurve* newCurve ) currentColor = m_dataSourceColors[sourceAddress]; if ( m_showStatisticsCurves ) { - cvf::Color3f backgroundColor = RiaColorTools::fromQColorTo3f( - trackByIndex( 0 )->viewer()->canvasBackground().color() ); - currentColor = RiaColorTools::blendCvfColors( backgroundColor, currentColor, 2, 1 ); + if ( trackByIndex( 0 ) && trackByIndex( 0 )->viewer() ) + { + cvf::Color3f backgroundColor = RiaColorTools::fromQColorTo3f( + trackByIndex( 0 )->viewer()->canvasBackground().color() ); + currentColor = RiaColorTools::blendCvfColors( backgroundColor, currentColor, 2, 1 ); + } } } else @@ -247,7 +250,7 @@ void RimWellRftPlot::applyInitialSelections() sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::GRID, gridCase ) ); } - for ( RimSummaryCaseCollection* const ensemble : RimWellPlotTools::rftEnsemblesForWell( m_wellPathNameOrSimWellName ) ) + for ( RimSummaryCaseCollection* const ensemble : RimWellPlotTools::rftEnsemblesForWell( simWellName ) ) { sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::ENSEMBLE_RFT, ensemble ) ); } @@ -262,7 +265,8 @@ void RimWellRftPlot::applyInitialSelections() } } - for ( RimObservedFmuRftData* const observedFmuRftData : RimWellPlotTools::observedFmuRftData() ) + for ( RimObservedFmuRftData* const observedFmuRftData : + RimWellPlotTools::observedFmuRftDataForWell( m_wellPathNameOrSimWellName ) ) { sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::OBSERVED_FMU_RFT, observedFmuRftData ) );