mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update clang-format.yml (#10068)
* Update to clang-format-15 Removed two custom .clang-format files in subfolders of AppFwk * Fixes by clang-format
This commit is contained in:
@@ -85,7 +85,8 @@ cvf::ref<RigSurface> RigSurfaceStatisticsCalculator::computeStatistics( const st
|
||||
RigStatisticsMath::calculateStatisticsCurves( samples, &p10, &p50, &p90, &mean, RigStatisticsMath::PercentileStyle::SWITCHED );
|
||||
|
||||
// TODO: improve handling of these cases
|
||||
auto makeValid = []( double val ) {
|
||||
auto makeValid = []( double val )
|
||||
{
|
||||
if ( std::isinf( val ) || std::isnan( val ) ) return 0.0;
|
||||
return val;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user