diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleCrossPlotStatisticsCase.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleCrossPlotStatisticsCase.cpp index c724bb4283..76c2ef5fc1 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleCrossPlotStatisticsCase.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimEnsembleCrossPlotStatisticsCase.cpp @@ -54,8 +54,7 @@ bool RimEnsembleCrossPlotStatisticsCase::values( const RifEclipseSummaryAddress& } } - const std::vector* sourceData = nullptr; - auto quantityName = resultAddress.ensembleStatisticsVectorName(); + auto quantityName = resultAddress.ensembleStatisticsVectorName(); if ( quantityName == ENSEMBLE_STAT_P10_QUANTITY_NAME ) *values = m_p10Data; @@ -197,7 +196,7 @@ void RimEnsembleCrossPlotStatisticsCase::calculate( const std::vector sampleCountThreshold ) + if ( static_cast(binnedYValues.size()) > sampleCountThreshold ) { double p10, p50, p90, mean; RigStatisticsMath::calculateStatisticsCurves( binnedYValues, &p10, &p50, &p90, &mean, RigStatisticsMath::PercentileStyle::SWITCHED );