From 4520e733eb3826250217b2ba359cbe5d8f5d96f8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 28 Oct 2023 12:33:45 -0600 Subject: [PATCH] Rename a variable. --- include/deal.II/lac/petsc_snes.templates.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/petsc_snes.templates.h b/include/deal.II/lac/petsc_snes.templates.h index 156dbc4cd4..8fe90971f0 100644 --- a/include/deal.II/lac/petsc_snes.templates.h +++ b/include/deal.II/lac/petsc_snes.templates.h @@ -641,19 +641,20 @@ namespace PETScWrappers AssertPETSc(status); // Get the number of steps taken. - PetscInt nt; - AssertPETSc(SNESGetIterationNumber(snes, &nt)); + PetscInt n_iterations; + AssertPETSc(SNESGetIterationNumber(snes, &n_iterations)); // Raise an exception if the solver has not converged SNESConvergedReason reason; AssertPETSc(SNESGetConvergedReason(snes, &reason)); AssertThrow(reason > 0, ExcMessage("SNES solver did not converge after " + - std::to_string(nt) + " iterations with reason " + + std::to_string(n_iterations) + + " iterations with reason " + SNESConvergedReasons[reason])); // Finally return - return nt; + return n_iterations; } -- 2.39.5