]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cppcheck: move some things into the initializer list.
authorDavid Wells <drwells@email.unc.edu>
Sat, 9 May 2020 19:31:43 +0000 (15:31 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 9 May 2020 23:24:48 +0000 (19:24 -0400)
include/deal.II/lac/precondition_block.h

index 82548850074eb8f99368532b19b9db23a0d4f7f1..4fab3fa7ade701d5a8dca56292abc164e740b68f 100644 (file)
@@ -939,12 +939,11 @@ inline PreconditionBlockJacobi<MatrixType, inverse_type>::const_iterator::
     const PreconditionBlockJacobi<MatrixType, inverse_type> *matrix,
     const size_type                                          row)
   : matrix(matrix)
+  , bs(matrix->block_size())
+  , a_block(row / bs)
   , b_iterator(&matrix->inverse(0), 0, 0)
   , b_end(&matrix->inverse(0), 0, 0)
 {
-  bs      = matrix->block_size();
-  a_block = row / bs;
-
   // This is the end accessor, which
   // does not have a valid block.
   if (a_block == matrix->size())

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.