]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cppcheck: initialize a member in the init list. 8142/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 17:27:17 +0000 (13:27 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 19:56:35 +0000 (15:56 -0400)
source/lac/trilinos_solver.cc

index 3642fbefb8303f2b12bd7dfcf097c1ac8069c022..c522eeb07602f5f8404bdd313c26a28279989792 100644 (file)
@@ -362,13 +362,12 @@ namespace TrilinosWrappers
         const Epetra_LinearProblem &linear_problem)
         : initial_residual(std::numeric_limits<double>::max())
         , current_residual(std::numeric_limits<double>::max())
+        // Consider linear problem converged if any of the collection of
+        // criterion are met
+        , status_test_collection(
+            std_cxx14::make_unique<AztecOO_StatusTestCombo>(
+              AztecOO_StatusTestCombo::OR))
       {
-        // Consider linear problem converged if any of the collection
-        // of criterion are met
-        status_test_collection =
-          std_cxx14::make_unique<AztecOO_StatusTestCombo>(
-            AztecOO_StatusTestCombo::OR);
-
         // Maximum number of iterations
         Assert(max_steps >= 0, ExcInternalError());
         status_test_max_steps =

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.