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:
@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user