mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use restricted dictionary lookup for utilities (issue #762)
- get<label>, get<scalar> instead of readLabel, readScalar, etc.
This commit is contained in:
@ -10,11 +10,11 @@
|
||||
)
|
||||
);
|
||||
|
||||
const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")));
|
||||
const label nIntervals(pdfDictionary.get<label>("nIntervals"));
|
||||
|
||||
const label nSamples(readLabel(pdfDictionary.lookup("nSamples")));
|
||||
const label nSamples(pdfDictionary.get<label>("nSamples"));
|
||||
|
||||
const bool writeData(readBool(pdfDictionary.lookup("writeData")));
|
||||
const bool writeData(pdfDictionary.get<bool>("writeData"));
|
||||
|
||||
|
||||
const fileName pdfPath = runTime.path()/"pdf";
|
||||
|
||||
Reference in New Issue
Block a user