mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +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:
@ -46,9 +46,9 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
|
||||
{
|
||||
plane mirrorPlane(mirrorMeshDict_);
|
||||
|
||||
scalar planeTolerance
|
||||
const scalar planeTolerance
|
||||
(
|
||||
readScalar(mirrorMeshDict_.lookup("planeTolerance"))
|
||||
mirrorMeshDict_.get<scalar>("planeTolerance")
|
||||
);
|
||||
|
||||
const pointField& oldPoints = points();
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
plane mirrorPlane(mirrorMeshDict);
|
||||
|
||||
scalar planeTolerance
|
||||
const scalar planeTolerance
|
||||
(
|
||||
readScalar(mirrorMeshDict.lookup("planeTolerance"))
|
||||
mirrorMeshDict.get<scalar>("planeTolerance")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user