From: Martin Kronbichler Date: Fri, 20 May 2022 07:00:19 +0000 (+0200) Subject: Fix compile error of test on certain compilers X-Git-Tag: v9.4.0-rc1~189^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1159517ac6f963b7f7ef8e5709c87abd9c06f8c;p=dealii.git Fix compile error of test on certain compilers --- diff --git a/tests/matrix_free/solver_cg_interleave.cc b/tests/matrix_free/solver_cg_interleave.cc index bce2199da2..bef4c74a30 100644 --- a/tests/matrix_free/solver_cg_interleave.cc +++ b/tests/matrix_free/solver_cg_interleave.cc @@ -258,7 +258,7 @@ test(const unsigned int fe_degree) << "no preconditioner" << std::endl; sol = 0; HelmholtzOperator matrix(mf_data); - MyDiagonalMatrix simple_diagonal(preconditioner.get_vector()); + MyDiagonalMatrix simple_diagonal(preconditioner.get_vector()); SolverControl control(200, 1e-2 * rhs.l2_norm()); SolverCG 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 matrix(mf_data); - DiagonalMatrixSubrange diagonal_subrange(preconditioner.get_vector()); - SolverControl control(200, 1e-2 * rhs.l2_norm()); - SolverCG solver(control); + DiagonalMatrixSubrange diagonal_subrange( + preconditioner.get_vector()); + SolverControl control(200, 1e-2 * rhs.l2_norm()); + SolverCG solver(control); solver.solve(matrix, sol, rhs, diagonal_subrange); deallog << "Norm of the solution: " << sol.l2_norm() << std::endl; matrix.print_n_calls_special();