]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Corrected maximum iteration number for PETSc Richardson solver.
authorprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 3 Jun 2007 11:41:28 +0000 (11:41 +0000)
committerprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 3 Jun 2007 11:41:28 +0000 (11:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@14743 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_solver.cc

index 36102d81e03ac34daec3fc5d4e8bb1c81f250287..dcda5b9d67a7c27d8866e77c3a1142131386dd85 100644 (file)
@@ -305,7 +305,7 @@ namespace PETScWrappers
                                     // where no residual is
                                     // available.
     KSPSetTolerances(ksp, PETSC_DEFAULT, this->solver_control.tolerance(),
-                    PETSC_DEFAULT, this->solver_control.max_steps());
+                    PETSC_DEFAULT, this->solver_control.max_steps()+1);
   }
   
 

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.