DMAdaptorMonitorErrorDrawLG#
Plots the error norm at each iteration of an adaptive loop.
Synopsis#
#include "petscdmadaptor.h" 
PetscErrorCode DMAdaptorMonitorErrorDrawLG(DMAdaptor adaptor, PetscInt n, DM odm, DM adm, PetscInt Nf, PetscReal enorms[], Vec error, PetscViewerAndFormat *vf)
Collective
Input Parameters#
- adaptor - the - DMAdaptor
- n - iteration number 
- odm - the original - DM
- adm - the adapted - DM
- Nf - number of fields 
- enorms - 2-norm error values for each field (may be estimated). 
- error - - Vecof cellwise errors
- vf - The viewer context, obtained via - DMAdaptorMonitorErrorDrawLGCreate()
Options Database Key#
- -adaptor_error draw::draw_lg - Activates - DMAdaptorMonitorErrorDrawLG()
Notes#
This is not called directly by users, rather one calls DMAdaptorMonitorSet(), with this function as an argument, to cause the monitor
to be used during the adaptation loop.
Call DMAdaptorMonitorErrorDrawLGCreate() to create the context needed for this monitor
See Also#
SNES: Nonlinear Solvers, PETSCVIEWERDRAW, DMAdaptor, DMAdaptorMonitorSet(), DMAdaptorMonitorErrorDraw(), DMAdaptorMonitorError(),
DMAdaptorMonitorTrueResidualDrawLGCreate()
Level#
intermediate
Location#
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages