mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8182 Fracture Statistics: improve floating point format
This commit is contained in:
committed by
Magne Sjaastad
parent
9324c81322
commit
ce6ea17cd2
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaEclipseUnitTools.h"
|
||||
#include "RiaNumberFormat.h"
|
||||
#include "RiaWeightedMeanCalculator.h"
|
||||
|
||||
#include "RigFractureCell.h"
|
||||
@@ -441,3 +442,15 @@ std::vector<RigEnsembleFractureStatisticsCalculator::PropertyType> RigEnsembleFr
|
||||
};
|
||||
return types;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<RiaNumberFormat::NumberFormatType, int>
|
||||
RigEnsembleFractureStatisticsCalculator::numberFormatForProperty( PropertyType propertyType )
|
||||
{
|
||||
if ( propertyType == PropertyType::WIDTH )
|
||||
return std::make_pair( RiaNumberFormat::NumberFormatType::FIXED, 4 );
|
||||
else
|
||||
return std::make_pair( RiaNumberFormat::NumberFormatType::FIXED, 1 );
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
#include "RiaNumberFormat.h"
|
||||
#include "RigHistogramData.h"
|
||||
|
||||
#include "cvfObject.h"
|
||||
@@ -66,6 +67,8 @@ public:
|
||||
|
||||
static std::vector<RigEnsembleFractureStatisticsCalculator::PropertyType> propertyTypes();
|
||||
|
||||
static std::pair<RiaNumberFormat::NumberFormatType, int> numberFormatForProperty( PropertyType propertyType );
|
||||
|
||||
private:
|
||||
static std::vector<double>
|
||||
calculateGridStatistics( const std::vector<cvf::ref<RigStimPlanFractureDefinition>>& fractureDefinitions,
|
||||
|
||||
Reference in New Issue
Block a user