SNESMonitor — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# SNESMonitor

runs the user provided monitor routines, if they exist

## Synopsis

    #include "petscsnes.h"
    PetscErrorCode SNESMonitor(SNES snes, PetscInt iter, PetscReal rnorm)

Collective

## Input Parameters

- snes - nonlinear solver context obtained from `SNESCreate()`

- iter - iteration number

- rnorm - relative norm of the residual

## Note

This routine is called by the `SNESSolve()` implementations. It does not typically need to be called by the user.

## See Also

SNES: Nonlinear Solvers, `SNES`, `SNESMonitorSet()`

## Level

developer

## Location

src/snes/interface/snes.c

Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages