]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Count first iteration, too
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Nov 2000 15:16:40 +0000 (15:16 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Nov 2000 15:16:40 +0000 (15:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@3508 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/solver_gmres.h

index 52179ed200a44f2dd0ed99f89efff2151d0b6a77..0e84368b464223c24ac77a92c511ac19ce20fe91 100644 (file)
@@ -312,9 +312,10 @@ unsigned int dim = 0;
           ((inner_iteration < n_tmp_vectors-2)
            &&
            (iteration_state==SolverControl::iterate));
-          ++inner_iteration, ++accumulated_iterations)
+          ++inner_iteration)
        {
-                                          // yet another alias
+         ++accumulated_iterations;
+         // yet another alias
          VECTOR& vv = *tmp_vectors[inner_iteration+1];
          
          if (left_precondition)

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.