:orphan: # KSPGetMonitorContext Gets the monitoring context, as set by `KSPMonitorSet()` for the FIRST monitor only. ## Synopsis ``` #include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPGetMonitorContext(KSP ksp, void *ctx) ``` Not Collective ## Input Parameter - ***ksp -*** iterative context obtained from `KSPCreate()` ## Output Parameter - ***ctx -*** monitoring context ## See Also [](ch_ksp), `KSPMonitorResidual()`, `KSP` ## Level intermediate ## Location src/ksp/ksp/interface/itfunc.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/itfunc.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)