mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-02 09:39:37 -05: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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user