:orphan:
# KSPMonitorDynamicToleranceSetCoefficient
Sets the coefficient in the context used by `KSPMonitorDynamicTolerance()` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPMonitorDynamicToleranceSetCoefficient(void *ctx, PetscReal coeff)
```
Logically Collective


## Output Parameters

- ***ctx -*** the context for `KSPMonitorDynamicTolerance()`
- ***coeff -*** the coefficient, default is 1.0



## Options Database Key

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





## Note
Use before calling `KSPMonitorSet()` and after `KSPMonitorDynamicToleranceCreate()`


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

## Level
advanced

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