Skip to content
Snippets Groups Projects
Commit 9be923fc authored by mattijs's avatar mattijs Committed by Mark OLESEN
Browse files

BUG: PBiCGStab: check minIter. Fixes #1052.

parent 44d7dc85
Branches
Tags
No related merge requests found
......@@ -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++)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment