mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 05:53:25 -06:00
Ensemble Fracture Statistics: Fix calculation of occurrence fracture
This commit is contained in:
parent
a3e54d5573
commit
5a3a5d1f36
@ -1189,18 +1189,26 @@ void RimEnsembleFractureStatistics::generateStatisticsGrids(
|
||||
}
|
||||
|
||||
std::map<RimEnsembleFractureStatistics::StatisticsType, double> areaMapping;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::MIN] = areaHistogram.min;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::MAX] = areaHistogram.max;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::MEAN] = areaHistogram.mean;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P50] = areaHistogram.mean;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P10] = areaHistogram.p10;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P90] = areaHistogram.p90;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::MIN] = areaHistogram.min;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::MAX] = areaHistogram.max;
|
||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::MEAN] = areaHistogram.mean;
|
||||
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 )
|
||||
{
|
||||
statisticsGrids[statisticsType] =
|
||||
setCellsToFillTargetArea( meanGrid, occurrenceGrid, *areaGrid, *distanceGrid, areaMapping[statisticsType] );
|
||||
if ( statisticsType != RimEnsembleFractureStatistics::StatisticsType::OCCURRENCE )
|
||||
statisticsGrids[statisticsType] =
|
||||
setCellsToFillTargetArea( meanGrid, occurrenceGrid, *areaGrid, *distanceGrid, areaMapping[statisticsType] );
|
||||
else
|
||||
statisticsGrids[statisticsType] = setCellsToFillTargetArea( occurrenceGrid,
|
||||
occurrenceGrid,
|
||||
*areaGrid,
|
||||
*distanceGrid,
|
||||
areaMapping[statisticsType] );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user