Patch contributed by Tobias Holzmann Resolves contribution request https://bugs.openfoam.org/view.php?id=2548
19 lines
555 B
C
19 lines
555 B
C
const dictionary& residualControl =
|
|
mesh.solutionDict().subDict("SIMPLE").subOrEmptyDict("residualControl");
|
|
|
|
scalar hTol = -1.;
|
|
|
|
if (!residualControl.empty())
|
|
{
|
|
if (!residualControl.subOrEmptyDict("h").empty())
|
|
{
|
|
hTol = readScalar(residualControl.subDict("h").lookup("tolerance"));
|
|
|
|
//- Used residual control for actual solid region
|
|
if (hTol != -1)
|
|
{
|
|
residualControlUsed = true;
|
|
resReachedSolid = false;
|
|
}
|
|
}
|
|
}
|