Skip to content

Commit

Permalink
src/conversion/ensight: Specify std::isnan
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Apr 4, 2016
1 parent 10d3215 commit ea3490b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/conversion/ensight/part/ensightPart.C
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -51,7 +51,7 @@ bool Foam::ensightPart::isFieldDefined(const List<scalar>& field) const
{
const label id = idList[i];

if (id >= field.size() || isnan(field[id]))
if (id >= field.size() || std::isnan(field[id]))
{
return false;
}
Expand Down Expand Up @@ -136,9 +136,8 @@ Foam::autoPtr<Foam::ensightPart> Foam::ensightPart::New(Istream& is)

if (cstrIter == istreamConstructorTablePtr_->end())
{
FatalIOErrorIn
FatalIOErrorInFunction
(
"ensightPart::New(Istream&)",
is
) << "unknown ensightPart type "
<< partType << nl << nl
Expand Down

0 comments on commit ea3490b

Please sign in to comment.