# 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
 [](chapter_ksp), `KSP`, `KSPGetConvergedReason()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/iterativ.c.html#KSPGetConvergedReasonString">src/ksp/ksp/interface/iterativ.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex6.c.html">src/snes/tutorials/ex6.c.html</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
