Files
OpenFOAM-12/applications/utilities/postProcessing/lagrangian/particleTracks/createFields.H
Henry Weller d987648ef4 dictionary label lookup: simplified syntax using the type templated lookup function
Replaced
    readLabel(dict.lookup("name"))
with
    dict.lookup<label>("name)
2019-11-27 11:38:59 +00:00

19 lines
424 B
C

IOdictionary propsDict
(
IOobject
(
"particleTrackProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED
)
);
const word cloudName(propsDict.lookup("cloudName"));
label sampleFrequency(propsDict.lookup<label>("sampleFrequency"));
label maxPositions(propsDict.lookup<label>("maxPositions"));
word setFormat(propsDict.lookupOrDefault<word>("setFormat", "vtk"));