- 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.
28 lines
672 B
C
28 lines
672 B
C
#include "readPISOControls.H"
|
|
#include "readTimeControls.H"
|
|
|
|
label nAlphaCorr
|
|
(
|
|
readLabel(piso.lookup("nAlphaCorr"))
|
|
);
|
|
|
|
label nAlphaSubCycles
|
|
(
|
|
readLabel(piso.lookup("nAlphaSubCycles"))
|
|
);
|
|
|
|
if (nAlphaSubCycles > 1 && nOuterCorr != 1)
|
|
{
|
|
FatalErrorIn(args.executable())
|
|
<< "Sub-cycling alpha is only allowed for PISO, "
|
|
"i.e. when the number of outer-correctors = 1"
|
|
<< exit(FatalError);
|
|
}
|
|
|
|
const bool correctPhi =
|
|
piso.lookupOrDefault("correctPhi", true);
|
|
|
|
const bool checkMeshCourantNo =
|
|
piso.lookupOrDefault("checkMeshCourantNo", false);
|
|
|