diff --git a/ApplicationLibCode/ProjectDataModel/RimEclipseStatisticsCase.cpp b/ApplicationLibCode/ProjectDataModel/RimEclipseStatisticsCase.cpp index c1485f3f4f..c6dc5071db 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEclipseStatisticsCase.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimEclipseStatisticsCase.cpp @@ -810,6 +810,22 @@ void RimEclipseStatisticsCase::computeStatisticsAndUpdateViews() { RicNewViewFeature::addReservoirView( this, nullptr ); } + + if ( reservoirViews.size() == 1 ) + { + // If only one view, set the first result as active + + if ( auto cellResultsData = results( RiaDefines::PorosityModelType::MATRIX_MODEL ) ) + { + auto firstView = reservoirViews[0]; + + std::vector resAddresses = cellResultsData->existingResults(); + if ( firstView && !resAddresses.empty() ) + { + firstView->cellResult()->setFromEclipseResultAddress( resAddresses[0] ); + } + } + } } //--------------------------------------------------------------------------------------------------