Skip to content
Snippets Groups Projects
Commit 06a4d424 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: PBiCGStab: check minIter. Fixes #1052.

parent 83e321d3
Branches
Tags
No related merge requests found
...@@ -208,7 +208,11 @@ Foam::solverPerformance Foam::PBiCGStab::solve ...@@ -208,7 +208,11 @@ Foam::solverPerformance Foam::PBiCGStab::solve
solverPerf.finalResidual() = solverPerf.finalResidual() =
gSumMag(sA, matrix().mesh().comm())/normFactor; 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++) for (label cell=0; cell<nCells; cell++)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment