std::fabs fix for Linux

This commit is contained in:
Gaute Lindkvist 2019-01-29 16:08:24 +01:00
parent eb498ad0dc
commit 4c5e277ebf

View File

@ -45,7 +45,7 @@ int EnsembleParameter::logarithmicVariationIndex() const
{
const double eps = 1.0e-4;
double maxAbs = std::max(std::abs(maxValue), std::abs(minValue));
double maxAbs = std::max(std::fabs(maxValue), std::fabs(minValue));
if (maxAbs < eps)
{
return -1;