]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-50: better solver tolerance
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Jun 2013 06:57:33 +0000 (06:57 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Jun 2013 06:57:33 +0000 (06:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@29888 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 7e3fe765c0e9ba0790b07ccee36f40b73541e72c..47df0fd2e8732c29f860ad6b6c91d2e8892ab0e2 100644 (file)
@@ -834,7 +834,7 @@ namespace Step50
     // With all this together, we can finally
     // get about solving the linear system in
     // the usual way:
-    SolverControl solver_control (500, 1e-12, false);
+    SolverControl solver_control (500, 1e-8*system_rhs.l2_norm(), false);
     SolverCG<vector_t>    cg (solver_control);
 
     solution = 0;

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.