#include "petscksp.h" PetscErrorCode KSPGMRESSetHapTol(KSP ksp,PetscReal tol)Logically Collective on ksp
ksp | - the Krylov space context | |
tol | - the tolerance |
-ksp_gmres_haptol <positive real value> |
Note: Happy breakdown is the rare case in GMRES where an 'exact' solution is obtained after a certain number of iterations. If you attempt more iterations after this point unstable things can happen hence very occasionally you may need to set this value to detect this condition