Ensemble Fracture Statistics: Fix calculation of occurrence fracture

This commit is contained in:
Kristian Bendiksen 2021-11-10 12:30:17 +01:00
parent a3e54d5573
commit 5a3a5d1f36

View File

@ -1195,12 +1195,20 @@ void RimEnsembleFractureStatistics::generateStatisticsGrids(
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P50] = areaHistogram.mean;
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P10] = areaHistogram.p10;
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P90] = areaHistogram.p90;
areaMapping[RimEnsembleFractureStatistics::StatisticsType::OCCURRENCE] = areaHistogram.max;
// Post-process the resulting grids improve area representation
for ( auto statisticsType : statisticsTypes )
{
if ( statisticsType != RimEnsembleFractureStatistics::StatisticsType::OCCURRENCE )
statisticsGrids[statisticsType] =
setCellsToFillTargetArea( meanGrid, occurrenceGrid, *areaGrid, *distanceGrid, areaMapping[statisticsType] );
else
statisticsGrids[statisticsType] = setCellsToFillTargetArea( occurrenceGrid,
occurrenceGrid,
*areaGrid,
*distanceGrid,
areaMapping[statisticsType] );
}
}