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:
@ -223,12 +223,12 @@ Foam::channelIndex::channelIndex
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
symmetric_(readBool(dict.lookup("symmetric"))),
|
||||
symmetric_(dict.get<bool>("symmetric")),
|
||||
dir_(vectorComponentsNames_.lookup("component", dict))
|
||||
{
|
||||
const polyBoundaryMesh& patches = mesh.boundaryMesh();
|
||||
|
||||
const wordList patchNames(dict.lookup("patches"));
|
||||
const wordList patchNames(dict.get<wordList>("patches"));
|
||||
|
||||
label nFaces = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user