From: Martin Kronbichler Date: Sat, 16 Mar 2024 09:07:48 +0000 (+0100) Subject: SolverGMRES: Fix a test case X-Git-Tag: v9.6.0-rc1~474^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16757%2Fhead;p=dealii.git SolverGMRES: Fix a test case --- diff --git a/tests/petsc/deal_solver_03.cc b/tests/petsc/deal_solver_03.cc index f01274a842..057b9e5675 100644 --- a/tests/petsc/deal_solver_03.cc +++ b/tests/petsc/deal_solver_03.cc @@ -64,9 +64,10 @@ main(int argc, char **argv) f = 1.; A.compress(VectorOperation::insert); - GrowingVectorMemory mem; - SolverGMRES solver(control, mem); - PreconditionIdentity preconditioner; + GrowingVectorMemory mem; + SolverGMRES::AdditionalData data(28); + SolverGMRES solver(control, mem, data); + PreconditionIdentity preconditioner; deallog << "Solver type: " << typeid(solver).name() << std::endl; check_solver_within_range(solver.solve(A, u, f, preconditioner), control.last_step(), diff --git a/tests/trilinos/deal_solver_03.cc b/tests/trilinos/deal_solver_03.cc index ffa1065eb8..cc22fcc5e7 100644 --- a/tests/trilinos/deal_solver_03.cc +++ b/tests/trilinos/deal_solver_03.cc @@ -74,15 +74,16 @@ main(int argc, char **argv) f.compress(VectorOperation::insert); u.compress(VectorOperation::insert); - GrowingVectorMemory mem; - SolverGMRES solver(control, mem); - PreconditionIdentity preconditioner; + GrowingVectorMemory mem; + SolverGMRES::AdditionalData data(28); + SolverGMRES solver(control, mem, data); + PreconditionIdentity preconditioner; deallog << "Solver type: " << typeid(solver).name() << std::endl; check_solver_within_range(solver.solve(A, u, f, preconditioner), control.last_step(), - 71, + 74, 76); } } diff --git a/tests/trilinos/deal_solver_03.output b/tests/trilinos/deal_solver_03.output index 3e4091158b..5b6f34323b 100644 --- a/tests/trilinos/deal_solver_03.output +++ b/tests/trilinos/deal_solver_03.output @@ -1,4 +1,4 @@ DEAL::Size 32 Unknowns 961 DEAL::Solver type: N6dealii11SolverGMRESINS_16TrilinosWrappers3MPI6VectorEEE -DEAL::Solver stopped within 71 - 76 iterations +DEAL::Solver stopped within 74 - 76 iterations