:orphan:
# KSPGetConvergedNegativeCurvature
Get the flag to declare convergence if negative curvature is detected 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPGetConvergedNegativeCurvature(KSP ksp, PetscBool *flg)
```
Collective


## Input Parameter

- ***ksp   -*** iterative context



## Output Parameter

- ***flg   -*** the Boolean value





## See Also
 [](ch_ksp), `KSP`, `KSPConvergedReason`, `KSPSetConvergedNegativeCurvature()`

## Level
advanced

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


---
[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)  
