From 36719bf55bc7aa425c64184053adc646b3088401 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 26 Mar 2018 09:09:09 +0200 Subject: [PATCH] STYLE: consistent lookupOrDefault template parameters - in many cases can just use lookupOrDefault("key", bool) instead of lookupOrDefault or lookupOrDefault since reading a bool from an Istream uses the Switch(Istream&) anyhow STYLE: relocated Switch string names into file-local scope --- .../XiFoam/XiDyMFoam/createControls.H | 4 ++-- .../combustion/XiFoam/XiDyMFoam/readControls.H | 4 ++-- .../solvers/combustion/fireFoam/createFields.H | 8 ++++---- .../solvers/combustion/fireFoam/phrghEqn.H | 2 +- .../compressible/rhoPimpleAdiabaticFoam/EEqn.H | 2 +- .../overRhoPimpleDyMFoam/createControls.H | 4 ++-- .../overRhoPimpleDyMFoam/readControls.H | 4 ++-- .../rhoPimpleDyMFoam/createControls.H | 4 ++-- .../rhoPimpleDyMFoam/readControls.H | 4 ++-- .../reactingParcelFoam/createFields.H | 4 ++-- .../cavitatingDyMFoam/createControls.H | 10 +++++----- .../cavitatingDyMFoam/readControls.H | 2 +- .../compressibleInterDyMFoam/createControls.H | 6 +++--- .../compressibleInterDyMFoam/readControls.H | 6 +++--- .../multiphase/driftFluxFoam/alphaControls.H | 4 ++-- .../interFoam/interDyMFoam/createDyMControls.H | 6 +++--- .../interFoam/interDyMFoam/readControls.H | 6 +++--- .../overInterDyMFoam/createDyMControls.H | 6 +++--- .../interFoam/overInterDyMFoam/readControls.H | 6 +++--- .../interPhaseChangeFoam/alphaControls.H | 4 ++-- .../reactingMultiphaseEulerFoam.C | 8 ++++---- .../reactingTwoPhaseEulerFoam.C | 8 ++++---- .../twoPhaseEulerFoam/twoPhaseEulerFoam.C | 8 ++++---- .../moveDynamicMesh/moveDynamicMesh.C | 2 +- .../viewFactorsGen/viewFactorsGen.C | 4 ++-- .../surfaceFeatureExtract.C | 10 +++++----- src/OpenFOAM/db/Time/Time.C | 4 ++-- src/OpenFOAM/global/profiling/profiling.C | 6 +++--- src/OpenFOAM/primitives/bools/Switch/Switch.C | 13 ++++++++++++- src/OpenFOAM/primitives/bools/Switch/Switch.H | 5 +---- .../primitives/subModelBase/subModelBase.C | 2 +- .../thermalBaffle1DFvPatchScalarField.C | 2 +- .../polyTopoChange/edgeCollapser.C | 2 +- .../polyTopoChange/edgeCollapser.H | 2 +- .../general/coupling/externalFileCoupler.C | 4 ++-- .../cfdTools/general/include/alphaControls.H | 4 ++-- .../fvPatchFields/derived/fan/fanFvPatchField.C | 4 ++-- .../fvPatchFields/derived/fan/fanFvPatchField.H | 10 +++++----- .../derived/fan/fanFvPatchFields.C | 4 ++-- .../flowRateOutletVelocityFvPatchVectorField.C | 2 +- ...edFlowRateOutletVelocityFvPatchVectorField.C | 2 +- .../swirlFanVelocityFvPatchField.C | 2 +- .../swirlFanVelocityFvPatchField.H | 10 +++++----- .../turbulentDFSEMInletFvPatchVectorField.C | 2 +- .../isoAdvection/isoAdvection/isoAdvection.C | 17 +++++------------ .../meshWave/meshWavePatchDistMethod.C | 2 +- .../fvMesh/wallDist/wallDist/wallDist.C | 4 ++-- .../field/fieldMinMax/fieldMinMax.C | 2 +- .../field/fieldMinMax/fieldMinMax.H | 4 ++-- .../regionSizeDistribution.C | 2 +- .../runTimePostProcessing/functionObjectBase.C | 2 +- .../graphics/runTimePostProcessing/text.C | 2 +- .../solvers/scalarTransport/scalarTransport.C | 2 +- .../runTimeCondition/runTimeCondition.C | 2 +- .../utilities/vtkWrite/vtkWrite.C | 4 ++-- .../interRegionOption/interRegionOption.C | 2 +- .../trimModel/targetCoeff/targetCoeffTrim.C | 2 +- .../CloudToVTK/CloudToVTK.C | 2 +- src/mesh/blockMesh/blockMesh/blockMesh.C | 10 ++++------ .../refinementParameters/refinementParameters.C | 2 +- .../cyclicAMIPolyPatch/cyclicAMIPolyPatch.C | 2 +- .../mappedPolyPatch/mappedPatchBase.C | 4 ++-- .../regionCoupledPolyPatch/regionCoupledBase.C | 2 +- .../cellSources/surfaceToCell/surfaceToCell.C | 2 +- .../reactingOneDim/reactingOneDim.C | 4 ++-- .../BrunDrippingInjection.C | 6 +++--- .../thermalBaffleModel/thermalBaffleModel.C | 4 ++-- src/renumber/SloanRenumber/SloanRenumber.C | 2 +- src/renumber/SloanRenumber/SloanRenumber.H | 7 +++---- .../CuthillMcKeeRenumber/CuthillMcKeeRenumber.C | 2 +- .../CuthillMcKeeRenumber/CuthillMcKeeRenumber.H | 2 +- .../sampledTriSurfaceMesh.C | 2 +- .../surface/triSurfaceMesh/discreteSurface.C | 4 ++-- ...yDiffusiveRadiationMixedFvPatchScalarField.C | 2 +- ...siveViewFactorFixedValueFvPatchScalarField.C | 2 +- 75 files changed, 161 insertions(+), 163 deletions(-) diff --git a/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H b/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H index aed0e76956..4c888d9e3a 100644 --- a/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H +++ b/applications/solvers/combustion/XiFoam/XiDyMFoam/createControls.H @@ -2,10 +2,10 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); diff --git a/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H b/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H index ed2db49fb4..08ab3a6af7 100644 --- a/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H +++ b/applications/solvers/combustion/XiFoam/XiDyMFoam/readControls.H @@ -1,6 +1,6 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); diff --git a/applications/solvers/combustion/fireFoam/createFields.H b/applications/solvers/combustion/fireFoam/createFields.H index 626e1652ef..35781d27d5 100644 --- a/applications/solvers/combustion/fireFoam/createFields.H +++ b/applications/solvers/combustion/fireFoam/createFields.H @@ -121,14 +121,14 @@ IOdictionary additionalControlsDict ) ); -Switch solvePrimaryRegion +bool solvePrimaryRegion ( - additionalControlsDict.lookup("solvePrimaryRegion") + additionalControlsDict.lookupOrDefault("solvePrimaryRegion", true) ); -Switch solvePyrolysisRegion +bool solvePyrolysisRegion ( - additionalControlsDict.lookupOrDefault("solvePyrolysisRegion", true) + additionalControlsDict.lookupOrDefault("solvePyrolysisRegion", true) ); volScalarField Qdot diff --git a/applications/solvers/combustion/fireFoam/phrghEqn.H b/applications/solvers/combustion/fireFoam/phrghEqn.H index 3c5175f41f..5d844d61cc 100644 --- a/applications/solvers/combustion/fireFoam/phrghEqn.H +++ b/applications/solvers/combustion/fireFoam/phrghEqn.H @@ -1,4 +1,4 @@ -if (pimple.dict().lookupOrDefault("hydrostaticInitialization", false)) +if (pimple.dict().lookupOrDefault("hydrostaticInitialization", false)) { volScalarField& ph_rgh = regIOobject::store ( diff --git a/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H b/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H index 9dae89f003..a3bd66654d 100644 --- a/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H +++ b/applications/solvers/compressible/rhoPimpleAdiabaticFoam/EEqn.H @@ -17,7 +17,7 @@ const dictionary& eosDict = thermoDict.subDict("equationOfState"); - bool local = eosDict.lookupOrDefault("local", false); + bool local = eosDict.lookupOrDefault("local", false); // Evolve T as: // diff --git a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H index aed0e76956..4c888d9e3a 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/createControls.H @@ -2,10 +2,10 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); diff --git a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H index ed2db49fb4..08ab3a6af7 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/overRhoPimpleDyMFoam/readControls.H @@ -1,6 +1,6 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); diff --git a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H index aed0e76956..4c888d9e3a 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/createControls.H @@ -2,10 +2,10 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); diff --git a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H index ed2db49fb4..08ab3a6af7 100644 --- a/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H +++ b/applications/solvers/compressible/rhoPimpleFoam/rhoPimpleDyMFoam/readControls.H @@ -1,6 +1,6 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); diff --git a/applications/solvers/lagrangian/reactingParcelFoam/createFields.H b/applications/solvers/lagrangian/reactingParcelFoam/createFields.H index b6673dae16..66c70f5e39 100644 --- a/applications/solvers/lagrangian/reactingParcelFoam/createFields.H +++ b/applications/solvers/lagrangian/reactingParcelFoam/createFields.H @@ -105,9 +105,9 @@ forAll(Y, i) } fields.add(thermo.he()); -Switch solvePrimaryRegion +bool solvePrimaryRegion ( - pimple.dict().lookupOrDefault("solvePrimaryRegion", true) + pimple.dict().lookupOrDefault("solvePrimaryRegion", true) ); volScalarField Qdot diff --git a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H index fbda6ae1a1..9f3fba812c 100644 --- a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H +++ b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/createControls.H @@ -1,11 +1,11 @@ #include "createTimeControls.H" +bool correctPhi +( + pimple.dict().lookupOrDefault("correctPhi", true) +); + scalar maxAcousticCo ( readScalar(runTime.controlDict().lookup("maxAcousticCo")) ); - -bool correctPhi -( - pimple.dict().lookupOrDefault("correctPhi", true) -); diff --git a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H index ad79c78c61..ad5e574527 100644 --- a/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H +++ b/applications/solvers/multiphase/cavitatingFoam/cavitatingDyMFoam/readControls.H @@ -1,4 +1,4 @@ #include "readTimeControls.H" +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); maxAcousticCo = readScalar(runTime.controlDict().lookup("maxAcousticCo")); -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); diff --git a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H index f1930cdfc0..1c2daf3427 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H +++ b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/createControls.H @@ -2,15 +2,15 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); diff --git a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H index d82dcecb8a..75e6cf6909 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H +++ b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/readControls.H @@ -1,9 +1,9 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); moveMeshOuterCorrectors = - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); diff --git a/applications/solvers/multiphase/driftFluxFoam/alphaControls.H b/applications/solvers/multiphase/driftFluxFoam/alphaControls.H index 759e0c22b6..95154c6a15 100644 --- a/applications/solvers/multiphase/driftFluxFoam/alphaControls.H +++ b/applications/solvers/multiphase/driftFluxFoam/alphaControls.H @@ -4,12 +4,12 @@ label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr"))); label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles"))); -bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); +bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); // Apply the compression correction from the previous iteration // Improves efficiency for steady-simulations but can only be applied // once the alpha field is reasonably steady, i.e. fully developed bool alphaApplyPrevCorr ( - alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) + alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) ); diff --git a/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H b/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H index 5055ac090a..f2322bb143 100644 --- a/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H +++ b/applications/solvers/multiphase/interFoam/interDyMFoam/createDyMControls.H @@ -1,14 +1,14 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); diff --git a/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H b/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H index d82dcecb8a..75e6cf6909 100644 --- a/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H +++ b/applications/solvers/multiphase/interFoam/interDyMFoam/readControls.H @@ -1,9 +1,9 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", true); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); moveMeshOuterCorrectors = - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); diff --git a/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H b/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H index 00673cec24..603ae1f545 100644 --- a/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H +++ b/applications/solvers/multiphase/interFoam/overInterDyMFoam/createDyMControls.H @@ -1,16 +1,16 @@ bool correctPhi ( - pimple.dict().lookupOrDefault("correctPhi", true) + pimple.dict().lookupOrDefault("correctPhi", true) ); bool checkMeshCourantNo ( - pimple.dict().lookupOrDefault("checkMeshCourantNo", false) + pimple.dict().lookupOrDefault("checkMeshCourantNo", false) ); bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); diff --git a/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H b/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H index a2acf92069..0f9f7c6738 100644 --- a/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H +++ b/applications/solvers/multiphase/interFoam/overInterDyMFoam/readControls.H @@ -1,12 +1,12 @@ #include "readTimeControls.H" -correctPhi = pimple.dict().lookupOrDefault("correctPhi", false); +correctPhi = pimple.dict().lookupOrDefault("correctPhi", false); checkMeshCourantNo = - pimple.dict().lookupOrDefault("checkMeshCourantNo", false); + pimple.dict().lookupOrDefault("checkMeshCourantNo", false); moveMeshOuterCorrectors = - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false); massFluxInterpolation = pimple.dict().lookupOrDefault("massFluxInterpolation", false); diff --git a/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H b/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H index 2b42206226..bd26f0b927 100644 --- a/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H +++ b/applications/solvers/multiphase/interPhaseChangeFoam/alphaControls.H @@ -4,14 +4,14 @@ label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr"))); label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles"))); -bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); +bool MULESCorr(alphaControls.lookupOrDefault("MULESCorr", false)); // Apply the compression correction from the previous iteration // Improves efficiency for steady-simulations but can only be applied // once the alpha field is reasonably steady, i.e. fully developed //bool alphaApplyPrevCorr //( -// alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) +// alphaControls.lookupOrDefault("alphaApplyPrevCorr", false) //); // Isotropic compression coefficient diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C index 55b6773862..87b8449cb4 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/reactingMultiphaseEulerFoam.C @@ -62,14 +62,14 @@ int main(int argc, char *argv[]) #include "setInitialDeltaT.H" } - // Switch faceMomentum + // bool faceMomentum // ( - // pimple.dict().lookupOrDefault("faceMomentum", false) + // pimple.dict().lookupOrDefault("faceMomentum", false) // ); - // Switch implicitPhasePressure + // bool implicitPhasePressure // ( - // mesh.solverDict(alpha1.name()).lookupOrDefault + // mesh.solverDict(alpha1.name()).lookupOrDefault // ( // "implicitPhasePressure", false // ) diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C index 399a596944..edcd357e0e 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C @@ -91,14 +91,14 @@ int main(int argc, char *argv[]) #include "setInitialDeltaT.H" } - Switch faceMomentum + bool faceMomentum ( - pimple.dict().lookupOrDefault("faceMomentum", false) + pimple.dict().lookupOrDefault("faceMomentum", false) ); - Switch implicitPhasePressure + bool implicitPhasePressure ( - mesh.solverDict(alpha1.name()).lookupOrDefault + mesh.solverDict(alpha1.name()).lookupOrDefault ( "implicitPhasePressure", false ) diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C index 849c94fe23..6f46e2b044 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseEulerFoam.C @@ -57,14 +57,14 @@ int main(int argc, char *argv[]) #include "CourantNos.H" #include "setInitialDeltaT.H" - Switch faceMomentum + bool faceMomentum ( - pimple.dict().lookupOrDefault("faceMomentum", false) + pimple.dict().lookupOrDefault("faceMomentum", false) ); - Switch implicitPhasePressure + bool implicitPhasePressure ( - mesh.solverDict(alpha1.name()).lookupOrDefault + mesh.solverDict(alpha1.name()).lookupOrDefault ( "implicitPhasePressure", false ) diff --git a/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C b/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C index eadf3831f9..d57e47a2e1 100644 --- a/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C +++ b/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C @@ -183,7 +183,7 @@ int main(int argc, char *argv[]) bool moveMeshOuterCorrectors ( - pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) + pimple.dict().lookupOrDefault("moveMeshOuterCorrectors", false) ); while (runTime.loop()) diff --git a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C index 40132f1344..dae63600ab 100644 --- a/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C +++ b/applications/utilities/preProcessing/viewFactorsGen/viewFactorsGen.C @@ -282,10 +282,10 @@ int main(int argc, char *argv[]) const word viewFactorWall("viewFactorWall"); const bool writeViewFactors = - viewFactorDict.lookupOrDefault("writeViewFactorMatrix", false); + viewFactorDict.lookupOrDefault("writeViewFactorMatrix", false); const bool dumpRays = - viewFactorDict.lookupOrDefault("dumpRays", false); + viewFactorDict.lookupOrDefault("dumpRays", false); const label debug = viewFactorDict.lookupOrDefault