From 9fb2773398a07a31cc3e0f83467d6e627b11df84 Mon Sep 17 00:00:00 2001 From: Amaury Johnan <amjohnen@gmail.com> Date: Tue, 24 Jun 2014 09:15:15 +0000 Subject: [PATCH] fix compile --- Numeric/MetricBasis.cpp | 2 +- Numeric/MetricBasis.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Numeric/MetricBasis.cpp b/Numeric/MetricBasis.cpp index 6450385d07..5a57fb89e1 100644 --- a/Numeric/MetricBasis.cpp +++ b/Numeric/MetricBasis.cpp @@ -1133,7 +1133,7 @@ double MetricBasis::_subdivideForRmin( md = subdomains.top(); double ans = md->_RminBez; - if (isnan(ans)) Msg::Error("ISNAN %d", subdomains.size()); + if (std::isnan(ans)) Msg::Error("ISNAN %d", subdomains.size()); while (subdomains.size()) { md = subdomains.top(); diff --git a/Numeric/MetricBasis.h b/Numeric/MetricBasis.h index 555b69923c..87ad416aba 100644 --- a/Numeric/MetricBasis.h +++ b/Numeric/MetricBasis.h @@ -113,7 +113,7 @@ private: const double phi = std::acos(x) / 3; return (a + 2*std::cos(phi + 2*M_PI/3)) / (a + 2*std::cos(phi)); } - bool _chknumber(double val) const {return isnan(val) || isinf(val);} + bool _chknumber(double val) const {return std::isnan(val) || std::isinf(val);} bool _chka(double a) const {return _chknumber(a) || a < 1;} bool _chkK(double K) const {return _chknumber(K) || K < 0;} int _chkaK(double a, double K) const { -- GitLab