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:
@ -32,8 +32,8 @@ IOdictionary turbulenceProperties
|
||||
);
|
||||
const dictionary& MaxwellCoeffs =
|
||||
turbulenceProperties.subDict("laminar").subDict("MaxwellCoeffs");
|
||||
const scalar nu1 = readScalar(MaxwellCoeffs.lookup("nuM"));
|
||||
const scalar lambda = readScalar(MaxwellCoeffs.lookup("lambda"));
|
||||
const scalar nu1 = MaxwellCoeffs.lookup<scalar>("nuM");
|
||||
const scalar lambda = MaxwellCoeffs.lookup<scalar>("lambda");
|
||||
|
||||
const scalar rho = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user