:orphan: # KSPGetConvergedReasonString Return a human readable string for a `KSPConvergedReason` ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPGetConvergedReasonString(KSP ksp, const char **strreason) ``` Not Collective ## Input Parameter - ***ksp -*** the `KSP` context ## Output Parameter - ***strreason -*** a human readable string that describes ksp converged reason ## See Also [](ch_ksp), `KSP`, `KSPGetConvergedReason()` ## Level beginner ## Location src/ksp/ksp/interface/iterativ.c ## Examples src/snes/tutorials/ex6.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/iterativ.c) [Index of all KSP routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)