repo.or.cz
/
foam-extend-3.2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git]
/
applications
/
solvers
/
solidMechanics
/
elasticNonLinIncrTLSolidFoam
/
calculateRelativeResidual.H
blob
d5eccd36b3c24e17ea6bd0f8670a08e2625adb0d
1
{
2
scalarField magDU = mag(DU.internalField());
3
4
forAll(magDU, cellI)
5
{
6
if (magDU[cellI] < SMALL)
7
{
8
magDU[cellI] = SMALL;
9
}
10
}
11
12
relativeResidual =
13
gMax
14
(
15
mag
16
(
17
DU.internalField()
18
- DU.prevIter().internalField()
19
)
20
/magDU
21
);
22
}