petsc-3.7.1 2016-05-15
Report Typos and Errors

KSPMonitorSingularValue

Prints the two norm of the true residual and estimation of the extreme singular values of the preconditioned problem at each iteration.

Synopsis

#include "petscksp.h" 
PetscErrorCode  KSPMonitorSingularValue(KSP ksp,PetscInt n,PetscReal rnorm,PetscViewerAndFormat *dummy)
Logically Collective on KSP Many br

Input Parameters

ksp - the iterative context Many br
n - the iteration Many br
rnorm - the two norm of the residual Many br

Options Database Key

-ksp_monitor_singular_value -Activates KSPMonitorSingularValue() Many br

Notes

The CG solver uses the Lanczos technique for eigenvalue computation, Many brwhile GMRES uses the Arnoldi technique; other iterative methods do Many brnot currently compute singular values. Many br

Many br

Keywords

KSP, CG, default, monitor, extreme, singular values, Lanczos, Arnoldi

See Also

KSPComputeExtremeSingularValues()

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

Examples

src/snes/examples/tutorials/ex30.c.html