]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust template parameter in solver.
authorMarc Fehling <mafehling.git@gmail.com>
Thu, 27 Jan 2022 14:30:03 +0000 (15:30 +0100)
committerMarc Fehling <mafehling.git@gmail.com>
Thu, 27 Jan 2022 15:37:00 +0000 (16:37 +0100)
examples/step-55/step-55.cc

index 2d19f43ee67101cf2e651332185a8aba2e01b948..195e963be59f03b1c118407533f45c0c5414b002 100644 (file)
@@ -126,8 +126,8 @@ namespace Step55
     InverseMatrix<Matrix, Preconditioner>::vmult(VectorType &      dst,
                                                  const VectorType &src) const
     {
-      SolverControl solver_control(src.size(), 1e-8 * src.l2_norm());
-      SolverCG<LA::MPI::Vector> cg(solver_control);
+      SolverControl        solver_control(src.size(), 1e-8 * src.l2_norm());
+      SolverCG<VectorType> cg(solver_control);
       dst = 0;
 
       try

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.