mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: more consistent New methods, use unregistered IOobject where appropriate
This commit is contained in:
@ -34,7 +34,10 @@ Foam::surfaceFilmModels::injectionModel::New
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
word modelType(dict.lookup("injectionModel"));
|
||||
const word modelType
|
||||
(
|
||||
dict.lookup("injectionModel")
|
||||
);
|
||||
|
||||
Info<< " Selecting injectionModel " << modelType << endl;
|
||||
|
||||
|
||||
@ -34,7 +34,10 @@ Foam::surfaceFilmModels::phaseChangeModel::New
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
word modelType(dict.lookup("phaseChangeModel"));
|
||||
const word modelType
|
||||
(
|
||||
dict.lookup("phaseChangeModel")
|
||||
);
|
||||
|
||||
Info<< " Selecting phaseChangeModel " << modelType << endl;
|
||||
|
||||
|
||||
@ -36,10 +36,10 @@ Foam::surfaceFilmModels::surfaceFilmModel::New
|
||||
const dimensionedVector& g
|
||||
)
|
||||
{
|
||||
word modelType;
|
||||
|
||||
{
|
||||
IOdictionary surfaceFilmPropertiesDict
|
||||
// get model name, but do not register the dictionary
|
||||
const word modelType
|
||||
(
|
||||
IOdictionary
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -50,10 +50,8 @@ Foam::surfaceFilmModels::surfaceFilmModel::New
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
)
|
||||
);
|
||||
|
||||
surfaceFilmPropertiesDict.lookup("surfaceFilmModel") >> modelType;
|
||||
}
|
||||
).lookup("surfaceFilmModel")
|
||||
);
|
||||
|
||||
Info<< "Selecting surfaceFilmModel " << modelType << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user