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) 2020-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -52,7 +52,7 @@ Foam::functionObjects::shearStress::shearStress
)
:
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) 2020-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -49,7 +49,7 @@ Foam::functionObjects::totalEnthalpy::totalEnthalpy
)
:
fvMeshFunctionObject(name, runTime, dict),
writeLocalObjects(obr_, false),
writeLocalObjects(obr_),
phaseName_(word::null)
{
read(dict);