OpenFOAM: Replaced hard-coded scalar limits with C++11 numeric_limits

This change simplifies maintenance and improved portability
This commit is contained in:
Henry Weller
2018-01-24 14:43:32 +00:00
parent 0222535462
commit c902c7a396
15 changed files with 144 additions and 108 deletions

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-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -113,7 +113,7 @@ public:
{
forAll(sf, i)
{
if (mag(sf[i]) >= scalar(floatScalarVSMALL))
if (mag(sf[i]) >= scalar(floatScalarVSmall))
{
str_ << setw(12) << sf[i] << nl;
}