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
Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git]
/
applications
/
solvers
/
solidMechanics
/
elasticIncrAcpSolidFoam
/
calculateRelativeResidual.H
blob
246912f5e26c00e11c5c861f6af47968d136fe0d
1
{
2
scalar maxDU = gMax(mag(DU.internalField()));
3
4
relativeResidual =
5
gMax
6
(
7
mag(DU.internalField() - DU.prevIter().internalField())
8
/(maxDU + SMALL)
9
);
10
11
if (lduMatrix::debug == 1)
12
{
13
Info << "Relative residual = " << relativeResidual << endl;
14
}
15
}