mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
Ensemble Fracture Statistics: Fix calculation of occurrence fracture
This commit is contained in:
parent
a3e54d5573
commit
5a3a5d1f36
@ -1195,12 +1195,20 @@ void RimEnsembleFractureStatistics::generateStatisticsGrids(
|
|||||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P50] = areaHistogram.mean;
|
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P50] = areaHistogram.mean;
|
||||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P10] = areaHistogram.p10;
|
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P10] = areaHistogram.p10;
|
||||||
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P90] = areaHistogram.p90;
|
areaMapping[RimEnsembleFractureStatistics::StatisticsType::P90] = areaHistogram.p90;
|
||||||
|
areaMapping[RimEnsembleFractureStatistics::StatisticsType::OCCURRENCE] = areaHistogram.max;
|
||||||
|
|
||||||
// Post-process the resulting grids improve area representation
|
// Post-process the resulting grids improve area representation
|
||||||
for ( auto statisticsType : statisticsTypes )
|
for ( auto statisticsType : statisticsTypes )
|
||||||
{
|
{
|
||||||
|
if ( statisticsType != RimEnsembleFractureStatistics::StatisticsType::OCCURRENCE )
|
||||||
statisticsGrids[statisticsType] =
|
statisticsGrids[statisticsType] =
|
||||||
setCellsToFillTargetArea( meanGrid, occurrenceGrid, *areaGrid, *distanceGrid, areaMapping[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