KSPView#

Prints the various parameters currently set in the KSP object. For example, the convergence tolerances and KSPType. Also views the PC and Mat contained by the KSP with PCView() and MatView().

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPView(KSP ksp, PetscViewer viewer)

Collective

Input Parameters#

  • ksp - the Krylov space context

  • viewer - visualization context

Options Database Key#

  • -ksp_view - print the KSP data structure at the end of each KSPSolve() call

Notes#

The available visualization contexts include

The available formats include

The user can open an alternative visualization context with PetscViewerASCIIOpen() - output to a specified file.

Use KSPViewFromOptions() to allow the user to select many different PetscViewerType and formats from the options database.

In the debugger you can do call KSPView(ksp,0) to display the KSP. (The same holds for any PETSc object viewer).

See Also#

KSP: Linear System Solvers, KSP, PetscViewer, PCView(), PetscViewerASCIIOpen(), KSPViewFromOptions()

Level#

beginner

Location#

src/ksp/ksp/interface/itcreate.c

Examples#

src/ksp/ksp/tutorials/ex1f.F90
src/ksp/ksp/tutorials/ex72.c
src/ksp/ksp/tutorials/ex23.c

Implementations#

KSPView_BCGSL() in src/ksp/ksp/impls/bcgsl/bcgsl.c
KSPView_CG() in src/ksp/ksp/impls/cg/cg.c
KSPView_PIPELCG() in src/ksp/ksp/impls/cg/pipelcg/pipelcg.c
KSPView_Chebyshev() in src/ksp/ksp/impls/cheby/cheby.c
KSPView_FCG() in src/ksp/ksp/impls/fcg/fcg.c
KSPView_PIPEFCG() in src/ksp/ksp/impls/fcg/pipefcg/pipefcg.c
KSPView_FETIDP() in src/ksp/ksp/impls/fetidp/fetidp.c
KSPView_GCR() in src/ksp/ksp/impls/gcr/gcr.c
KSPView_PIPEGCR() in src/ksp/ksp/impls/gcr/pipegcr/pipegcr.c
KSPView_AGMRES() in src/ksp/ksp/impls/gmres/agmres/agmres.c
KSPView_DGMRES() in src/ksp/ksp/impls/gmres/dgmres/dgmres.c
KSPView_GMRES() in src/ksp/ksp/impls/gmres/gmres.c
KSPView_LGMRES() in src/ksp/ksp/impls/gmres/lgmres/lgmres.c
KSPView_PIPEFGMRES() in src/ksp/ksp/impls/gmres/pipefgmres/pipefgmres.c
KSPView_HPDDM() in src/ksp/ksp/impls/hpddm/hpddm.cxx
KSPView_LCD() in src/ksp/ksp/impls/lcd/lcd.c
KSPView_LSQR() in src/ksp/ksp/impls/lsqr/lsqr.c
KSPView_Richardson() in src/ksp/ksp/impls/rich/rich.c


Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages