]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Correctly increment a step counter. 2982/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 18 Aug 2016 03:05:17 +0000 (23:05 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 18 Aug 2016 03:05:17 +0000 (23:05 -0400)
This was caught by cppcheck.

include/deal.II/lac/solver_bicgstab.h

index 7b097ebb2550ad8f4fd11ce0f09f5185a3026a4c..da2141f852e65dcf92544c86adef722bf75248b4 100644 (file)
@@ -475,6 +475,7 @@ SolverBicgstab<VectorType>::solve(const MatrixType         &A,
           break;
         }
       state = iterate(A, precondition);
+      ++step;
     }
   while (state.breakdown == true);
 

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.