From 9839b1c6fb56c1e78a8f6d27952bd3a486faf3c2 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 16 Mar 2024 10:07:48 +0100 Subject: [PATCH] SolverGMRES: Fix a test case --- tests/petsc/deal_solver_03.cc | 7 ++++--- tests/trilinos/deal_solver_03.cc | 9 +++++---- tests/trilinos/deal_solver_03.output | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) 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 -- 2.39.5