Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticIncrAcpSolidFoam / calculateRelativeResidual.H
blob246912f5e26c00e11c5c861f6af47968d136fe0d
2     scalar maxDU = gMax(mag(DU.internalField()));
4     relativeResidual =
5         gMax
6         (
7             mag(DU.internalField() - DU.prevIter().internalField())
8            /(maxDU + SMALL)
9         );
11     if (lduMatrix::debug == 1)
12     {
13         Info << "Relative residual = " << relativeResidual << endl;
14     }