Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticIncrSolidFoam / calculateRelativeResidual.H
blob36430dbbb04b4b3fb01c9df55d738346acb6787a
2     scalarField magDU = mag(DU.internalField());
4     forAll(magDU, cellI)
5     {
6         if (magDU[cellI] < SMALL)
7         {
8             magDU[cellI] = SMALL;
9         }
10     }
12     relativeResidual =
13         gMax
14         (
15             mag
16             (
17                 DU.internalField()
18               - DU.prevIter().internalField()
19             )/magDU
20         );