Commit 06a4d424 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: PBiCGStab: check minIter. Fixes #1052.

parent 83e321d3
......@@ -208,7 +208,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++)
{
......
Supports Markdown
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