#include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPSetErrorIfNotConverged(KSP ksp,PetscBool flg)Logically Collective on ksp
ksp | - iterative context obtained from KSPCreate() | |
flg | - PETSC_TRUE indicates you want the error generated |
-ksp_error_if_not_converged : this takes an optional truth value (0/1/no/yes/true/false) |