:orphan: # SNESMonitorRatioSetUp Insures the `SNES` object is saving its history since this monitor needs access to it ## Synopsis ``` #include "petsc/private/snesimpl.h" PetscErrorCode SNESMonitorRatioSetUp(SNES snes, PetscViewerAndFormat *vf) ``` Collective ## Input Parameters - ***snes -*** the `SNES` context - ***viewer -*** the `PetscViewer` object (ignored) ## See Also [](ch_snes), `SNESMonitorSet()`, `SNESMonitorSolution()`, `SNESMonitorDefault()`, `SNESMonitorRatio()`, `PetscViewerFormat`, `PetscViewerAndFormat` ## Level intermediate ## Location src/snes/interface/snesut.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/interface/snesut.c) [Index of all SNES routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)