From: bangerth Date: Thu, 29 Sep 2011 02:11:57 +0000 (+0000) Subject: Use the right vector's norm as a stopping criterion. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d36d88ea5730d6118619811451b76a458fc571;p=dealii-svn.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);