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
Remove trailing whitespace systematically
[foam-extend-3.2.git]
/
applications
/
solvers
/
solidMechanics
/
elasticNonLinTLSolidFoam
/
calculateRelativeResidual.H
blob
fbd71718a7ba54d6b79aca2075ae944d7d60371c
1
{
2
scalarField magU = mag(U.internalField() - U.oldTime().internalField());
3
4
forAll(magU, cellI)
5
{
6
if (magU[cellI] < SMALL)
7
{
8
magU[cellI] = SMALL;
9
}
10
}
11
12
relativeResidual =
13
gMax
14
(
15
mag
16
(
17
U.internalField()
18
- U.prevIter().internalField()
19
)
20
/magU
21
);
22
}