# SNESSetRatioMonitor

Sets SNES to use a monitor that prints the ratio of the function norm at each iteration.

### Synopsis

    #include "petscsnes.h"
    PetscErrorCode PETSCSNES_DLLEXPORT SNESSetRatioMonitor(SNES snes,PetscViewer viewer)

Collective on SNES

### Input Parameters

| snes | - the SNES context
| viewer | - ASCII viewer to print output

### Keywords

SNES, nonlinear, monitor, norm

### See Also

SNESSetMonitor(), SNESVecViewMonitor(), SNESDefaultMonitor()

Level:intermediate
Location: src/snes/interface/snesut.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages