]> https://gitweb.dealii.org/ - dealii.git/commitdiff
renamed residual_norm to relative_error
authorDenis Davydov <davydden@gmail.com>
Mon, 24 Nov 2014 10:49:50 +0000 (11:49 +0100)
committerDenis Davydov <davydden@gmail.com>
Wed, 26 Nov 2014 08:28:06 +0000 (09:28 +0100)
source/lac/slepc_solver.cc

index 0aea6ad11800a8d5aed26cb87f2731cb1c9f79c4..47a55e33527efcb20b80a4c6c85b676a0e0505af 100644 (file)
@@ -198,7 +198,7 @@ namespace SLEPcWrappers
     AssertThrow (ierr == 0, ExcSLEPcError(ierr));
 
     PetscInt n_iterations   = 0;
-    PetscReal residual_norm = 1.e300;
+    PetscReal relative_error = 1.e300;
 
     // @todo Investigate elaborating on some of this to act on the
     // complete eigenspectrum
@@ -213,13 +213,13 @@ namespace SLEPcWrappers
         {
           // EPSGetErrorEstimate is consistent with the residual norm
           // used during the solution process.
-          ierr = EPSGetErrorEstimate (solver_data->eps, 0, &residual_norm);
+          ierr = EPSGetErrorEstimate (solver_data->eps, 0, &relative_error);
           AssertThrow (ierr == 0, ExcSLEPcError(ierr));
         }
 
       // check the solver state
       const SolverControl::State state
-        = solver_control.check (n_iterations, residual_norm);
+        = solver_control.check (n_iterations, relative_error);
 
       // get the solver state according to SLEPc
       get_solver_state (state);

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.