Skip to content
Snippets Groups Projects
Commit fed204aa authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: use residual from the first iteration for residualControl

parent db8b5e6b
Branches
Tags
No related merge requests found
......@@ -47,8 +47,12 @@ bool Foam::residualControl::checkCriteria(const bool verbose) const
if (maxResiduals_.readIfPresent(variableName, maxResidual))
{
// use the residual from the first solution
const scalar eqnResidual =
lduMatrix::solverPerformance(iter().stream()).initialResidual();
List<lduMatrix::solverPerformance>
(
iter().stream()
).first().initialResidual();
achieved = achieved && (eqnResidual < maxResidual);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment