Files
OpenFOAM-12/applications/utilities/mesh/manipulation/mirrorMesh/readMirrorDict.H
Henry Weller 5eaf74c3a4 dictionary scalar lookup: simplified syntax using the type templated lookup function
Replaced
    readScalar(dict.lookup("name"))
with
    dict.lookup<scalar>("name")
2019-11-27 14:56:32 +00:00

21 lines
420 B
C++

Info<< "Reading mirrorMeshDict\n" << endl;
IOdictionary mirrorMeshDict
(
IOobject
(
"mirrorMeshDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
plane mirrorPlane(mirrorMeshDict);
scalar planeTolerance
(
mirrorMeshDict.lookup<scalar>("planeTolerance")
);