Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / compressibleInterFoam / readControls.H
blob954fcb27f2da0f67bc0131113f86a99d807a7d09
1    #include "readTimeControls.H"
3     label nAlphaCorr
4     (
5         readLabel(pimple.dict().lookup("nAlphaCorr"))
6     );
8     label nAlphaSubCycles
9     (
10         readLabel(pimple.dict().lookup("nAlphaSubCycles"))
11     );
13     if (nAlphaSubCycles > 1 && pimple.nOuterCorr() != 1)
14     {
15         FatalErrorIn(args.executable())
16             << "Sub-cycling alpha is only allowed for PISO, "
17                "i.e. when the number of outer-correctors = 1"
18             << exit(FatalError);
19     }