STYLE: more consistent New methods, use unregistered IOobject where appropriate

This commit is contained in:
Mark Olesen
2010-04-20 17:13:35 +02:00
parent 9707e5c100
commit 5cfa97624e
166 changed files with 1498 additions and 1540 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;