STYLE: update of 'mode' to 'type' keyword for radiation properties

This commit is contained in:
Mark Olesen
2019-05-17 09:53:25 +01:00
committed by Andrew Heather
parent 29e6c81af8
commit 722ebdb151
15 changed files with 15 additions and 26 deletions

View File

@ -44,7 +44,7 @@ autoPtr<filmThermoModel> filmThermoModel::New
const dictionary& dict
)
{
word modelType(dict.get<word>("filmThermoModel"));
const word modelType(dict.get<word>("filmThermoModel"));
Info<< " Selecting filmThermoModel " << modelType << endl;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -51,7 +51,7 @@ Foam::radiation::boundaryRadiationPropertiesPatch::New
const polyPatch& pp
)
{
word modelType(dict.lookupCompat("type", {{"mode", 1812}}));
const word modelType(dict.getCompat<word>("type", {{"mode", 1812}}));
Info<< "Selecting boundary radiation Model: "
<< modelType << endl;

View File

@ -48,7 +48,7 @@ Foam::autoPtr<Foam::waveModel> Foam::waveModel::New
)
);
word modelType = "none";
word modelType("none");
dictionary patchDict;
if (waveDict.found(patch.name()))
{