ENH: use restricted dictionary lookup for utilities (issue #762)

- get<label>, get<scalar> instead of readLabel, readScalar, etc.
This commit is contained in:
Mark Olesen
2018-07-24 08:08:30 +02:00
parent d362c2235b
commit d58c142404
90 changed files with 475 additions and 659 deletions

View File

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

View File

@ -14,7 +14,7 @@
plane mirrorPlane(mirrorMeshDict);
scalar planeTolerance
const scalar planeTolerance
(
readScalar(mirrorMeshDict.lookup("planeTolerance"))
mirrorMeshDict.get<scalar>("planeTolerance")
);