From 7ca4e95147bb5bd1d75d086240c6b32ec65ddbc6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 15 Apr 2004 16:27:21 +0000 Subject: [PATCH] Loosen convergence criteria. git-svn-id: https://svn.dealii.org/trunk@9012 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-17/step-17.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deal.II/examples/step-17/step-17.cc b/deal.II/examples/step-17/step-17.cc index 75360524d0..aac7365654 100644 --- a/deal.II/examples/step-17/step-17.cc +++ b/deal.II/examples/step-17/step-17.cc @@ -770,7 +770,8 @@ unsigned int ElasticProblem::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::run () if (this_mpi_process == 0) std::cout << " Solver converged in " << n_iterations << " iterations." << std::endl; - + output_results (cycle); } } -- 2.39.5