petsc-3.14.5 2021-03-03
Report Typos and Errors

# SNESMonitorDefault

Monitors progress of the SNES solvers (default).

### Synopsis

    #include "petsc/private/snesimpl.h"
    PetscErrorCode  SNESMonitorDefault(SNES snes,PetscInt its,PetscReal fgnorm,PetscViewerAndFormat *vf)

Collective on SNES

### Input Parameters

| snes | - the SNES context
| its | - iteration number
| fgnorm | - 2-norm of residual
| vf | - viewer and format structure

### Notes

This routine prints the residual norm at each iteration.

### See Also

SNESMonitorSet(), SNESMonitorSolution()

### Level

intermediate

### Location

src/snes/interface/snesut.c

### Examples

src/snes/tutorials/ex12.c.html
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages