From: Martin Kronbichler Date: Mon, 6 Nov 2017 10:04:12 +0000 (+0100) Subject: Check termination within a few iterations for iterative solver. X-Git-Tag: v9.0.0-rc1~814^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeabba10acbbb7831522f58335af7cbcd0b748af;p=dealii.git Check termination within a few iterations for iterative solver. --- 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.