writeObjectsBase: Added static Switch logFalse for default initialisation of log

avoiding erroneously setting the log Switch reference to false when logging is
not required.
This commit is contained in:
Henry Weller
2022-10-09 22:07:55 +01:00
parent 56023e97fb
commit 03b17d695b
7 changed files with 20 additions and 14 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2019-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -56,7 +56,7 @@ Foam::functionObjects::Qdot::Qdot
)
:
fvMeshFunctionObject(name, runTime, dict),
writeLocalObjects(obr_, false),
writeLocalObjects(obr_),
phaseName_(word::null)
{
read(dict);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2019-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -55,8 +55,6 @@ class Qdot
public fvMeshFunctionObject,
public writeLocalObjects
{
private:
// Private Data
//- The name of the phase