:orphan:
# KSPMonitorDynamicToleranceCreate
Creates the context used by `KSPMonitorDynamicTolerance()` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPMonitorDynamicToleranceCreate(void *ctx)
```
Logically Collective


## Output Parameter

- ***ctx -*** a void pointer



## Options Database Key

- ***-sub_ksp_dynamic_tolerance <coef> -*** coefficient of dynamic tolerance for inner solver, default is 1.0





## Note
Use before calling `KSPMonitorSet()` with `KSPMonitorDynamicTolerance()`

The default coefficient for the tolerance can be changed with `KSPMonitorDynamicToleranceSetCoefficient()`


## See Also
 [](sec_flexibleksp), `KSP`, `KSPMonitorDynamicTolerance()`, `KSPMonitorDynamicToleranceDestroy()`, `KSPMonitorDynamicToleranceSetCoefficient()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/iterativ.c.html#KSPMonitorDynamicToleranceCreate">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)  
