BUGFIX: Uninitialised member variables
[foam-extend-3.2.git] / applications / solvers / multiphase / compressibleInterDyMFoam / readControls.H
blob440c8a473f060f87817d4c86345ced2a5d8b8c19
1    #include "readPISOControls.H"
2    #include "readTimeControls.H"
4     label nAlphaSubCycles
5     (
6         readLabel(piso.lookup("nAlphaSubCycles"))
7     );
9     if (nAlphaSubCycles > 1 && nOuterCorr != 1)
10     {
11         FatalErrorIn(args.executable())
12             << "Sub-cycling alpha is only allowed for PISO, "
13                "i.e. when the number of outer-correctors = 1"
14             << exit(FatalError);
15     }
17     bool correctPhi = true;
18     if (piso.found("correctPhi"))
19     {
20         correctPhi = Switch(piso.lookup("correctPhi"));
21     }
23     bool checkMeshCourantNo = false;
24     if (piso.found("checkMeshCourantNo"))
25     {
26         checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));
27     }