SNESMonitorLGRange#
Line-graph monitor that plots the residual norm together with residual-range statistics for a SNESSolve()
Synopsis#
#include "petscsnes.h"
#include "petscsnes.h"
PetscErrorCode SNESMonitorLGRange(SNES snes, PetscInt n, PetscReal rnorm, PetscCtx monctx)
Collective
Input Parameters#
snes - the
SNEScontextn - the iteration number
rnorm - the 2-norm of the residual
monctx - a
PetscViewerof typePETSCVIEWERDRAWset up withPetscViewerMonitorLGSetUp()
Note#
Plots four line graphs in the viewer: the residual norm (log scale), the fraction of residual entries larger than 20% of the maximum entry, the relative decrease (prev - rnorm)/prev, and their product.
See Also#
SNES: Nonlinear Solvers, SNES, SNESMonitorSet(), SNESMonitorDefault(), PetscViewerDrawGetDrawLG(), PetscDrawLG
Level#
intermediate
Location#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages