// initialize values for convergence checks scalar maxResidual = 0; scalar convergenceCriterion = 0;