PBiCGStab: Further improvements to the dual convergence logic

This commit is contained in:
Henry Weller
2019-08-19 12:49:02 +01:00
parent 62c193d929
commit db5d858802

View File

@ -206,8 +206,9 @@ Foam::solverPerformance Foam::PBiCGStab::solve
if
(
++solverPerf.nIterations() >= maxIter_
&& solverPerf.checkConvergence(tolerance_, relTol_))
++solverPerf.nIterations() >= minIter_
&& solverPerf.checkConvergence(tolerance_, relTol_)
)
{
for (label cell=0; cell<nCells; cell++)
{
@ -241,8 +242,11 @@ Foam::solverPerformance Foam::PBiCGStab::solve
/normFactor;
} while
(
solverPerf.nIterations() < minIter_
|| !solverPerf.checkConvergence(tolerance_, relTol_)
(
solverPerf.nIterations() < maxIter_
&& !solverPerf.checkConvergence(tolerance_, relTol_)
)
|| solverPerf.nIterations() < minIter_
);
}