#include "petscksp.h" PetscErrorCode KSPSetTolerances(KSP ksp,PetscReal rtol,PetscReal abstol,PetscReal dtol,PetscInt maxits)Logically Collective on KSP Many br
ksp | - the Krylov subspace context Many br | |
rtol | - the relative convergence tolerance, relative decrease in the (possibly preconditioned) residual norm Many br | |
abstol | - the absolute convergence tolerance absolute size of the (possibly preconditioned) residual norm Many br | |
dtol | - the divergence tolerance, amount (possibly preconditioned) residual norm can increase before KSPConvergedDefault() concludes that the method is diverging Many br | |
maxits | - maximum number of iterations to use Many br |
-ksp_atol <abstol> | - Sets abstol Many br | |
-ksp_rtol <rtol> | - Sets rtol Many br | |
-ksp_divtol <dtol> | - Sets dtol Many br | |
-ksp_max_it <maxits> | - Sets maxits Many br |
See KSPConvergedDefault() for details how these parameters are used in the default convergence test. See also KSPSetConvergenceTest() Many brfor setting user-defined stopping criteria. Many br
Many br
Level:intermediate
Location:src/ksp/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages