mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use restricted dictionary lookup for utilities (issue #762)
- get<label>, get<scalar> instead of readLabel, readScalar, etc.
This commit is contained in:
@ -148,7 +148,7 @@ Foam::LESModel<BasicTurbulenceModel>::New
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
)
|
||||
).subDict("LES").lookup("LESModel")
|
||||
).subDict("LES").get<word>("LESModel")
|
||||
);
|
||||
|
||||
Info<< "Selecting LES turbulence model " << modelType << endl;
|
||||
|
||||
@ -138,7 +138,7 @@ Foam::RASModel<BasicTurbulenceModel>::New
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
)
|
||||
).subDict("RAS").lookup("RASModel")
|
||||
).subDict("RAS").get<word>("RASModel")
|
||||
);
|
||||
|
||||
Info<< "Selecting RAS turbulence model " << modelType << endl;
|
||||
|
||||
Reference in New Issue
Block a user