OpenFOAM: Rationalized the naming of scalar limits

In early versions of OpenFOAM the scalar limits were simple macro replacements and the
names were capitalized to indicate this.  The scalar limits are now static
constants which is a huge improvement on the use of macros and for consistency
the names have been changed to camel-case to indicate this and improve
readability of the code:

    GREAT -> great
    ROOTGREAT -> rootGreat
    VGREAT -> vGreat
    ROOTVGREAT -> rootVGreat
    SMALL -> small
    ROOTSMALL -> rootSmall
    VSMALL -> vSmall
    ROOTVSMALL -> rootVSmall

The original capitalized are still currently supported but their use is
deprecated.
This commit is contained in:
Henry Weller
2018-01-25 09:46:37 +00:00
parent 2c882ab4a7
commit fc2b2d0c05
729 changed files with 2822 additions and 2809 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -72,10 +72,10 @@ label findPoint(const primitivePatch& pp, const point& nearPoint)
const labelList& meshPoints = pp.meshPoints();
// Find nearest and next nearest
scalar minDistSqr = GREAT;
scalar minDistSqr = great;
label minI = -1;
scalar almostMinDistSqr = GREAT;
scalar almostMinDistSqr = great;
label almostMinI = -1;
forAll(meshPoints, i)
@ -136,10 +136,10 @@ label findEdge
const edgeList& edges = pp.edges();
// Find nearest and next nearest
scalar minDist = GREAT;
scalar minDist = great;
label minI = -1;
scalar almostMinDist = GREAT;
scalar almostMinDist = great;
label almostMinI = -1;
forAll(edges, edgeI)
@ -218,10 +218,10 @@ label findFace
const pointField& points = pp.points();
// Find nearest and next nearest
scalar minDist = GREAT;
scalar minDist = great;
label minI = -1;
scalar almostMinDist = GREAT;
scalar almostMinDist = great;
label almostMinI = -1;
forAll(pp, patchFacei)
@ -289,7 +289,7 @@ label findCell(const primitiveMesh& mesh, const point& nearPoint)
const labelList& cPoints = mesh.cellPoints()[celli];
label minI = -1;
scalar minDistSqr = GREAT;
scalar minDistSqr = great;
forAll(cPoints, i)
{