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:
@ -13,17 +13,17 @@ IOdictionary conversionProperties
|
||||
|
||||
scalar startTime
|
||||
(
|
||||
readScalar(conversionProperties.lookup("startTime"))
|
||||
conversionProperties.get<scalar>("startTime")
|
||||
);
|
||||
|
||||
word vComp
|
||||
(
|
||||
conversionProperties.lookup("vector")
|
||||
conversionProperties.get<word>("vector")
|
||||
);
|
||||
|
||||
word format
|
||||
(
|
||||
conversionProperties.lookup("format")
|
||||
conversionProperties.get<word>("format")
|
||||
);
|
||||
|
||||
if ((format != "ascii") && (format != "ieeei4r8"))
|
||||
@ -37,7 +37,7 @@ if ((format != "ascii") && (format != "ieeei4r8"))
|
||||
|
||||
word cells
|
||||
(
|
||||
conversionProperties.lookup("cells")
|
||||
conversionProperties.get<word>("cells")
|
||||
);
|
||||
|
||||
if
|
||||
|
||||
Reference in New Issue
Block a user