:orphan:
# SNESMonitorFields
Monitors the residual for each field separately 
## Synopsis
```
#include "petscdmplex.h" 
#include "petscsnes.h"   
PetscErrorCode SNESMonitorFields(SNES snes, PetscInt its, PetscReal fgnorm, PetscViewerAndFormat *vf)
```
Collective


## Input Parameters

- ***snes   -*** the `SNES` context
- ***its    -*** iteration number
- ***fgnorm -*** 2-norm of residual
- ***vf  -*** `PetscViewerAndFormat` of `PetscViewerType` `PETSCVIEWERASCII`





## Note
This routine prints the residual norm at each iteration.


## See Also
 `SNES`, `SNESMonitorSet()`, `SNESMonitorDefault()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/utils/dmplexsnes.c.html#SNESMonitorFields">src/snes/utils/dmplexsnes.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmplexsnes.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)  
