From bc8dbb2d45408d3ebcaf5b674944175f4f315c7a Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 4 Apr 2016 08:59:50 +0100 Subject: [PATCH] src/conversion/ensight: Specify std::isnan Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=2041 --- src/conversion/ensight/part/ensightPart.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conversion/ensight/part/ensightPart.C b/src/conversion/ensight/part/ensightPart.C index a8a02535d0..d06c64e559 100644 --- a/src/conversion/ensight/part/ensightPart.C +++ b/src/conversion/ensight/part/ensightPart.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,7 +51,7 @@ bool Foam::ensightPart::isFieldDefined(const List& field) const { const label id = idList[i]; - if (id >= field.size() || isnan(field[id])) + if (id >= field.size() || std::isnan(field[id])) { return false; }