Files
OpenFOAM-12/applications/utilities/preProcessing/boxTurb/readBoxTurbDict.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

18 lines
377 B
C++

Info<< "Reading boxTurbDict\n" << endl;
IOdictionary boxTurbDict
(
IOobject
(
"boxTurbDict",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
scalar Ea(boxTurbDict.lookup<scalar>("Ea"));
scalar k0(boxTurbDict.lookup<scalar>("k0"));