Block matrix residual check: exploring options
This commit is contained in:
parent
9c05ec6dc8
commit
796b5489f3
1 changed files with 8 additions and 0 deletions
|
@ -39,9 +39,17 @@ bool Foam::BlockSolverPerformance<Type>::checkConvergence
|
||||||
Info<< solverName_
|
Info<< solverName_
|
||||||
<< ": Iteration " << nIterations_
|
<< ": Iteration " << nIterations_
|
||||||
<< " residual = " << finalResidual_
|
<< " residual = " << finalResidual_
|
||||||
|
<< " mag = " << mag(finalResidual_)
|
||||||
|
<< " tol = "
|
||||||
|
<< Foam::max(Tolerance, RelTolerance*mag(initialResidual_))
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reconsider evaluation of the final residual residualVector
|
||||||
|
// - mag(residualVector) = sqrt(sum(sqr(cmpt))). Currently used - strict
|
||||||
|
// - cmptSum(residualVector) = consistent with 1-norm
|
||||||
|
// - cmptMax(residualVector) = consistent with inftyNorm
|
||||||
|
// HJ, 29/May/2014
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
mag(finalResidual_) < Tolerance
|
mag(finalResidual_) < Tolerance
|
||||||
|
|
Reference in a new issue