]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a variable. 16212/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 28 Oct 2023 18:33:45 +0000 (12:33 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 28 Oct 2023 18:33:45 +0000 (12:33 -0600)
include/deal.II/lac/petsc_snes.templates.h

index 156dbc4cd420ba94431094a938fa06ded806b4a6..8fe90971f0810f363c10d3d8fc6b152d40af05f4 100644 (file)
@@ -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;
   }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.