mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use 'static const' instead of 'const static' for consistency
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -47,7 +47,7 @@ cellShape extrudedQuadCellShape
|
|||||||
faceList& frontAndBackFaces
|
faceList& frontAndBackFaces
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const static cellModel* hexModelPtr_ = NULL;
|
static const cellModel* hexModelPtr_ = NULL;
|
||||||
|
|
||||||
if (!hexModelPtr_)
|
if (!hexModelPtr_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -48,7 +48,7 @@ cellShape extrudedTriangleCellShape
|
|||||||
faceList& frontAndBackFaces
|
faceList& frontAndBackFaces
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const static cellModel* prismModelPtr_ = NULL;
|
static const cellModel* prismModelPtr_ = NULL;
|
||||||
|
|
||||||
if (!prismModelPtr_)
|
if (!prismModelPtr_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -32,7 +32,7 @@ Description
|
|||||||
|
|
||||||
void sammMesh::calcPointCells() const
|
void sammMesh::calcPointCells() const
|
||||||
{
|
{
|
||||||
const static label UNIT_POINT_CELLS = 12;
|
static const label UNIT_POINT_CELLS = 12;
|
||||||
|
|
||||||
if (pointCellsPtr_)
|
if (pointCellsPtr_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -32,7 +32,7 @@ Description
|
|||||||
|
|
||||||
void starMesh::calcPointCells() const
|
void starMesh::calcPointCells() const
|
||||||
{
|
{
|
||||||
const static label UNIT_POINT_CELLS = 12;
|
static const label UNIT_POINT_CELLS = 12;
|
||||||
|
|
||||||
if (pointCellsPtr_)
|
if (pointCellsPtr_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -25,8 +25,8 @@ Class
|
|||||||
Foam::readerDatabase
|
Foam::readerDatabase
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Singleton caching OpenFOAM database and mesh and various. Used in Fv reader
|
Singleton caching OpenFOAM database and mesh and various.
|
||||||
to keep track of data inbetween callbacks.
|
Used in Fv reader to keep track of data in between callbacks.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
readerDatabase.C
|
readerDatabase.C
|
||||||
@ -107,7 +107,7 @@ public:
|
|||||||
//- Debug flag. Note: uses envvar instead of controlDict since
|
//- Debug flag. Note: uses envvar instead of controlDict since
|
||||||
// *this is static as well. Might be initialized before controlDict
|
// *this is static as well. Might be initialized before controlDict
|
||||||
// read.
|
// read.
|
||||||
const static bool debug_;
|
static const bool debug_;
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -33,7 +33,7 @@ Description
|
|||||||
|
|
||||||
void Foam::meshReader::calcPointCells() const
|
void Foam::meshReader::calcPointCells() const
|
||||||
{
|
{
|
||||||
const static label UNIT_POINT_CELLS = 12;
|
static const label UNIT_POINT_CELLS = 12;
|
||||||
|
|
||||||
if (pointCellsPtr_)
|
if (pointCellsPtr_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -194,7 +194,7 @@ public:
|
|||||||
|
|
||||||
//- Tolerance when comparing points. Usually relative to difference
|
//- Tolerance when comparing points. Usually relative to difference
|
||||||
// between start_ and end_
|
// between start_ and end_
|
||||||
const static scalar tol;
|
static const scalar tol;
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|||||||
Reference in New Issue
Block a user