KSPVecViewMonitor

Monitors progress of the KSP solvers by calling VecView() for the approximate solution at each iteration.

Synopsis

#include "petscksp.h" 
int KSPVecViewMonitor(KSP ksp,int its,PetscReal fgnorm,void *dummy)
Collective on KSP

Input Parameters

ksp - the KSP context
its - iteration number
fgnorm - 2-norm of residual (or gradient)
dummy - either a viewer or PETSC_NULL

Notes

For some Krylov methods such as GMRES constructing the solution at each iteration is expensive, hence using this will slow the code.

Keywords

KSP, nonlinear, vector, monitor, view

See Also

KSPSetMonitor(), KSPDefaultMonitor(), VecView()

Level:intermediate
Location:
src/sles/ksp/interface/iterativ.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages