KSPGMRESMonitorKrylov#
Calls VecView() for each new direction in the KSPGMRES accumulated Krylov space.
Synopsis#
#include "petscksp.h"
PetscErrorCode KSPGMRESMonitorKrylov(KSP ksp, PetscInt its, PetscReal fgnorm, void *dummy)
Collective
Input Parameters#
ksp - the
KSPcontextits - iteration number
fgnorm - 2-norm of residual (or gradient)
dummy - an collection of viewers created with
KSPViewerCreate()
Options Database Key#
-ksp_gmres_krylov_monitor
- Plot the Krylov directions
Note#
A new PETSCVIEWERDRAW is created for each Krylov vector so they can all be simultaneously viewed
See Also#
KSP: Linear System Solvers, KSPGMRES, KSPMonitorSet(), KSPMonitorResidual(), VecView(), KSPViewersCreate(), KSPViewersDestroy()
Level#
intermediate
Location#
src/ksp/ksp/impls/gmres/gmres.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages