Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticNonLinIncrTLSolidFoam / calculateRelativeResidual.H
blobd5eccd36b3c24e17ea6bd0f8670a08e2625adb0d
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             )
20            /magDU
21         );