From eeabba10acbbb7831522f58335af7cbcd0b748af Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Mon, 6 Nov 2017 11:04:12 +0100 Subject: [PATCH] Check termination within a few iterations for iterative solver. --- tests/fe/abf_01.cc | 3 ++- tests/fe/abf_01.output | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/fe/abf_01.cc b/tests/fe/abf_01.cc index 3f7026c71b..9c37212dee 100644 --- a/tests/fe/abf_01.cc +++ b/tests/fe/abf_01.cc @@ -532,7 +532,8 @@ void project (const Mapping &mapping, PreconditionSSOR<> prec; prec.initialize(mass_matrix, 1.2); // solve - cg.solve (mass_matrix, vec, tmp, prec); + check_solver_within_range(cg.solve(mass_matrix, vec, tmp, prec), + control.last_step(), 16, 17); // distribute solution constraints.distribute (vec); diff --git a/tests/fe/abf_01.output b/tests/fe/abf_01.output index a5a0902953..b6dfbdea98 100644 --- a/tests/fe/abf_01.output +++ b/tests/fe/abf_01.output @@ -16,10 +16,9 @@ DEAL:: 0.00 1.00 DEAL:: 0.50 1.00 DEAL::Dofs/cell 6Dofs/face 1 DEAL::Dofs total 15 -DEAL:cg::Starting value 2.82 -DEAL:cg::Convergence step 17 value 0 -DEAL::L2-Err=0, Hdiv-Err=0 -DEAL::-0.10 0.50 1.00 0.40 0 0 0.60 0.50 0.50 0 0 1.00 0.50 0 0 +DEAL::Solver stopped within 16 - 17 iterations +DEAL::L2-Err=0.00, Hdiv-Err=0.00 +DEAL::-0.10 0.50 1.00 0.40 0.00 0.00 0.60 0.50 0.50 0.00 0.00 1.00 0.50 0.00 0.00 # This file was generated by the deal.II library. -- 2.39.5