19 lines
251 B
C++
19 lines
251 B
C++
{
|
|
scalar magDU = gMax(mag(DU.internalField()));
|
|
|
|
if (magDU < SMALL)
|
|
{
|
|
magDU = SMALL;
|
|
}
|
|
|
|
relativeResidual =
|
|
gMax
|
|
(
|
|
mag
|
|
(
|
|
DU.internalField()
|
|
- DU.prevIter().internalField()
|
|
)
|
|
/magDU
|
|
);
|
|
}
|