src/conversion/ensight: Specify std::isnan

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2041
This commit is contained in:
Henry Weller
2016-04-04 12:51:33 +01:00
parent 736c47d4dc
commit 1c97ed7098

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -63,7 +63,7 @@ void Foam::ensightPart::writeFieldList
{
forAll(idList, i)
{
if (idList[i] >= field.size() || isnan(field[idList[i]]))
if (idList[i] >= field.size() || std::isnan(field[idList[i]]))
{
os.writeUndef();
}
@ -80,7 +80,7 @@ void Foam::ensightPart::writeFieldList
// no idList => perNode
forAll(field, i)
{
if (isnan(field[i]))
if (std::isnan(field[i]))
{
os.writeUndef();
}