BUG: PBiCGStab: check minIter. Fixes #1052.

This commit is contained in:
mattijs
2019-03-27 16:29:52 +00:00
committed by Mark Olesen
parent 44d7dc8545
commit 9be923fc56

View File

@ -206,7 +206,11 @@ Foam::solverPerformance Foam::PBiCGStab::solve
solverPerf.finalResidual() =
gSumMag(sA, matrix().mesh().comm())/normFactor;
if (solverPerf.checkConvergence(tolerance_, relTol_))
if
(
solverPerf.nIterations() >= minIter_
&& solverPerf.checkConvergence(tolerance_, relTol_)
)
{
for (label cell=0; cell<nCells; cell++)
{