- both versions handle the same input words. Only need the <Switch> version when the destination variable is also a Switch and we need to output the word later.
12 lines
342 B
C
12 lines
342 B
C
const dictionary& pimple = mesh.solutionDict().subDict("PIMPLE");
|
|
|
|
const int nCorr =
|
|
pimple.lookupOrDefault<int>("nCorrectors", 1);
|
|
|
|
const int nNonOrthCorr =
|
|
pimple.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
|
|
|
const bool momentumPredictor =
|
|
pimple.lookupOrDefault("momentumPredictor", true);
|
|
|