]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Loosen convergence criteria.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Apr 2004 16:27:21 +0000 (16:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Apr 2004 16:27:21 +0000 (16:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@9012 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 75360524d055c57ee4e33dcf27a22c5e11cd2c1e..aac7365654061784e1f0730ac75076c13ad7e726 100644 (file)
@@ -770,7 +770,8 @@ unsigned int ElasticProblem<dim>::solve ()
                                    // number of blocks on the diagonal and the
                                    // preconditioner is the ILU(0) of each of
                                    // these blocks.
-  SolverControl           solver_control (1000, 1e-10);
+  SolverControl           solver_control (solution.size(), 
+                                          1e-8*system_rhs.l2_norm());
   PETScWrappers::SolverCG cg (solver_control,
                               mpi_communicator);
 
@@ -1248,7 +1249,7 @@ void ElasticProblem<dim>::run ()
       if (this_mpi_process == 0)
         std::cout << "   Solver converged in " << n_iterations
                   << " iterations." << std::endl;
-      
+
       output_results (cycle);
     }
 }

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.