dictionary scalar lookup: simplified syntax using the type templated lookup function

Replaced
    readScalar(dict.lookup("name"))
with
    dict.lookup<scalar>("name")
This commit is contained in:
Henry Weller
2019-11-27 14:56:32 +00:00
parent d987648ef4
commit 5eaf74c3a4
375 changed files with 1160 additions and 1632 deletions

View File

@ -96,14 +96,11 @@ Foam::domainDecomposition::domainDecomposition
),
nProcs_
(
readInt
decompositionModel::New
(
decompositionModel::New
(
*this,
dictFile
).lookup("numberOfSubdomains")
)
*this,
dictFile
).lookup<int>("numberOfSubdomains")
),
distributed_(false),
cellToProc_(nCells()),