Skip to content
Snippets Groups Projects
Commit 4f12c219 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix msvc

parent e7f2afcc
Branches
Tags
No related merge requests found
...@@ -1526,7 +1526,11 @@ double MetricBasis::_R2Dsafe(double q, double p) ...@@ -1526,7 +1526,11 @@ double MetricBasis::_R2Dsafe(double q, double p)
double MetricBasis::_R2Dsafe(double a) double MetricBasis::_R2Dsafe(double a)
{ {
if (a < 1 || !std::isfinite(a)) if (a < 1
#if !defined(_MSC_VER)
|| !std::isfinite(a)
#endif
)
Msg::Error("wrong argument for 2d metric (%g)", a); Msg::Error("wrong argument for 2d metric (%g)", a);
return (a - 1) / (a + 1); return (a - 1) / (a + 1);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment