]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compile error of test on certain compilers 13763/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Fri, 20 May 2022 07:00:19 +0000 (09:00 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Fri, 20 May 2022 07:00:19 +0000 (09:00 +0200)
tests/matrix_free/solver_cg_interleave.cc

index bce2199da23a2205839c2f3f662efebdfcda461e..bef4c74a30b31b6d09dd868db2820fdb0f26030e 100644 (file)
@@ -258,7 +258,7 @@ test(const unsigned int fe_degree)
             << "no preconditioner" << std::endl;
     sol = 0;
     HelmholtzOperator<dim, number> matrix(mf_data);
-    MyDiagonalMatrix               simple_diagonal(preconditioner.get_vector());
+    MyDiagonalMatrix<number>       simple_diagonal(preconditioner.get_vector());
     SolverControl                  control(200, 1e-2 * rhs.l2_norm());
     SolverCG<VectorType>           solver(control);
     solver.solve(matrix, sol, rhs, simple_diagonal);
@@ -274,9 +274,10 @@ test(const unsigned int fe_degree)
             << "preconditioner working on subrange" << std::endl;
     sol = 0;
     HelmholtzOperator<dim, number> matrix(mf_data);
-    DiagonalMatrixSubrange diagonal_subrange(preconditioner.get_vector());
-    SolverControl          control(200, 1e-2 * rhs.l2_norm());
-    SolverCG<VectorType>   solver(control);
+    DiagonalMatrixSubrange<number> diagonal_subrange(
+      preconditioner.get_vector());
+    SolverControl        control(200, 1e-2 * rhs.l2_norm());
+    SolverCG<VectorType> solver(control);
     solver.solve(matrix, sol, rhs, diagonal_subrange);
     deallog << "Norm of the solution: " << sol.l2_norm() << std::endl;
     matrix.print_n_calls_special();

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.