diff --git a/src/postProcessing/functionObjects/jobControl/residualControl/residualControl.C b/src/postProcessing/functionObjects/jobControl/residualControl/residualControl.C index a7ad2233cfc947920f07d424a4682f0660fec689..b8205f86243407fb781910ab844e5e8d48d219aa 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<lduMatrix::solverPerformance> + ( + iter().stream() + ).first().initialResidual(); achieved = achieved && (eqnResidual < maxResidual);