KSPDestroy#

Destroys a KSP context.

Synopsis#

#include "petscksp.h" 
#include "petscmat.h" 
PetscErrorCode KSPDestroy(KSP *ksp)

Collective

Input Parameter#

  • ksp - iterative context obtained from KSPCreate()

See Also#

KSP: Linear System Solvers, KSPCreate(), KSPSetUp(), KSPSolve(), KSP

Level#

beginner

Location#

src/ksp/ksp/interface/itfunc.c

Examples#

src/ksp/ksp/tutorials/ex10.c
src/ksp/ksp/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex3.c
src/ksp/ksp/tutorials/ex11.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/impls/stag/tutorials/ex2.c
src/dm/impls/stag/tutorials/ex8.c
src/ksp/ksp/tutorials/ex100.c
src/ksp/ksp/tutorials/bench_kspsolve.c
src/dm/impls/stag/tutorials/ex1.c

Implementations#

KSPDestroy_BCGS() in src/ksp/ksp/impls/bcgs/bcgs.c
KSPDestroy_BCGSL() in src/ksp/ksp/impls/bcgsl/bcgsl.c
KSPDestroy_CG() in src/ksp/ksp/impls/cg/cg.c
KSPDestroy_CGLS() in src/ksp/ksp/impls/cg/cgls.c
KSPDestroy_PIPELCG() in src/ksp/ksp/impls/cg/pipelcg/pipelcg.c
KSPDestroy_Chebyshev() in src/ksp/ksp/impls/cheby/cheby.c
KSPDestroy_FCG() in src/ksp/ksp/impls/fcg/fcg.c
KSPDestroy_PIPEFCG() in src/ksp/ksp/impls/fcg/pipefcg/pipefcg.c
KSPDestroy_FETIDP() in src/ksp/ksp/impls/fetidp/fetidp.c
KSPDestroy_GCR() in src/ksp/ksp/impls/gcr/gcr.c
KSPDestroy_PIPEGCR() in src/ksp/ksp/impls/gcr/pipegcr/pipegcr.c
KSPDestroy_AGMRES() in src/ksp/ksp/impls/gmres/agmres/agmres.c
KSPDestroy_DGMRES() in src/ksp/ksp/impls/gmres/dgmres/dgmres.c
KSPDestroy_FGMRES() in src/ksp/ksp/impls/gmres/fgmres/fgmres.c
KSPDestroy_GMRES() in src/ksp/ksp/impls/gmres/gmres.c
KSPDestroy_LGMRES() in src/ksp/ksp/impls/gmres/lgmres/lgmres.c
KSPDestroy_PGMRES() in src/ksp/ksp/impls/gmres/pgmres/pgmres.c
KSPDestroy_PIPEFGMRES() in src/ksp/ksp/impls/gmres/pipefgmres/pipefgmres.c
KSPDestroy_HPDDM() in src/ksp/ksp/impls/hpddm/hpddm.cxx
KSPDestroy_LCD() in src/ksp/ksp/impls/lcd/lcd.c
KSPDestroy_LSQR() in src/ksp/ksp/impls/lsqr/lsqr.c
KSPDestroy_MINRES() in src/ksp/ksp/impls/minres/minres.c
KSPDestroy_QCG() in src/ksp/ksp/impls/qcg/qcg.c
KSPDestroy_Richardson() in src/ksp/ksp/impls/rich/rich.c
KSPDestroy_TSIRM() in src/ksp/ksp/impls/tsirm/tsirm.c


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