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

KSPMonitorSolution

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

Synopsis

#include "petscksp.h" 
PetscErrorCode  KSPMonitorSolution(KSP ksp,PetscInt its,PetscReal fgnorm,PetscViewerAndFormat *dummy)
Collective on KSP Many br

Input Parameters

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

Many br

Notes

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

Keywords

KSP, nonlinear, vector, monitor, view

See Also

KSPMonitorSet(), KSPMonitorDefault(), VecView()

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