15 lines
320 B
C++
15 lines
320 B
C++
{
|
|
scalar maxDU = gMax(mag(DU.internalField()));
|
|
|
|
relativeResidual =
|
|
gMax
|
|
(
|
|
mag(DU.internalField() - DU.prevIter().internalField())
|
|
/(maxDU + SMALL)
|
|
);
|
|
|
|
if (lduMatrix::debug == 1)
|
|
{
|
|
Info << "Relative residual = " << relativeResidual << endl;
|
|
}
|
|
}
|