]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check termination within a few iterations for iterative solver.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 6 Nov 2017 10:04:12 +0000 (11:04 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 6 Nov 2017 18:57:40 +0000 (19:57 +0100)
tests/fe/abf_01.cc
tests/fe/abf_01.output

index 3f7026c71b217977f1d9242f768070ce1f20b2bd..9c37212deedf3d9427cf10219ed5b24d74bd31f8 100644 (file)
@@ -532,7 +532,8 @@ void project (const Mapping<dim>       &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);
index a5a0902953ebf011bebd88c128b04543a0cbcedb..b6dfbdea988eb0acaa2b2e79fa8f594729ff4fe9 100644 (file)
@@ -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.
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.