From d1159517ac6f963b7f7ef8e5709c87abd9c06f8c Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 20 May 2022 09:00:19 +0200 Subject: [PATCH] Fix compile error of test on certain compilers --- tests/matrix_free/solver_cg_interleave.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); -- 2.39.5