]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the right vector's norm as a stopping criterion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Sep 2011 02:11:57 +0000 (02:11 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Sep 2011 02:11:57 +0000 (02:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@24460 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc

index 208aba2b4fbc52c6e27e63d321c3e8d86e04997c..5051fe2b56eb4ec0b1559459346d29663386fa94 100644 (file)
@@ -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);

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.