diff --git a/src/postProcessing/functionObjects/jobControl/residualControl/residualControl.C b/src/postProcessing/functionObjects/jobControl/residualControl/residualControl.C index a7ad2233cf..b8205f8624 100644 --- a/src/postProcessing/functionObjects/jobControl/residualControl/residualControl.C +++ b/src/postProcessing/functionObjects/jobControl/residualControl/residualControl.C @@ -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 + ( + iter().stream() + ).first().initialResidual(); achieved = achieved && (eqnResidual < maxResidual);