]> https://gitweb.dealii.org/ - dealii.git/commitdiff
examples/step-20: Simplify code by using a temporary
authorMatthias Maier <tamiko@43-1.org>
Wed, 13 Feb 2019 22:51:16 +0000 (16:51 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 14 Feb 2019 18:31:02 +0000 (12:31 -0600)
examples/step-20/step-20.cc

index f1b12f6e185dc0331ba7cefa0a33000c15d511fe..89ed11124b1623d3a051e58c2e29731a6a4e1d7b 100644 (file)
@@ -613,10 +613,9 @@ namespace Step20
     // applies a fixed number of 30 (inexpensive) CG iterations:
     IterationNumberControl iteration_number_control_aS(30, 1.e-18);
     SolverCG<>             solver_aS(iteration_number_control_aS);
-    PreconditionIdentity   preconditioner_aS;
 
     const auto preconditioner_S =
-      inverse_operator(op_aS, solver_aS, preconditioner_aS);
+      inverse_operator(op_aS, solver_aS, PreconditionIdentity());
 
     // Now on to the first equation. The right hand side of it is
     // $B^TM^{-1}F-G$, which is what we compute in the first few lines. We

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.