dictionary scalar lookup: simplified syntax using the type templated lookup function
Replaced
readScalar(dict.lookup("name"))
with
dict.lookup<scalar>("name")
This commit is contained in:
@ -48,7 +48,7 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io, const word& dictName)
|
||||
|
||||
scalar planeTolerance
|
||||
(
|
||||
readScalar(mirrorMeshDict_.lookup("planeTolerance"))
|
||||
mirrorMeshDict_.lookup<scalar>("planeTolerance")
|
||||
);
|
||||
|
||||
const pointField& oldPoints = points();
|
||||
|
||||
@ -16,5 +16,5 @@
|
||||
|
||||
scalar planeTolerance
|
||||
(
|
||||
readScalar(mirrorMeshDict.lookup("planeTolerance"))
|
||||
mirrorMeshDict.lookup<scalar>("planeTolerance")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user