PBiCGStab: Further improvements to the dual convergence logic
This commit is contained in:
@ -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_
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user