From: Wolfgang Bangerth Date: Thu, 29 Sep 2011 02:11:57 +0000 (+0000) Subject: Use the right vector's norm as a stopping criterion. X-Git-Tag: v8.0.0~3352 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8a61635c7fe39e4758cbd5cc680dfc1a423cd8c;p=dealii.git Use the right vector's norm as a stopping criterion. git-svn-id: https://svn.dealii.org/trunk@24460 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 208aba2b4f..5051fe2b56 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -318,7 +318,7 @@ namespace Step32 if (do_solve_A == true) { - SolverControl solver_control(5000, src.l2_norm()*1e-2); + SolverControl solver_control(5000, utmp.l2_norm()*1e-2); TrilinosWrappers::SolverCG solver(solver_control); solver.solve(stokes_matrix->block(0,0), dst.block(0), utmp, a_preconditioner);