KSPGetPC#

Returns a pointer to the preconditioner context set with KSPSetPC().

Synopsis#

#include "petscksp.h" 
#include "petscmat.h" 
PetscErrorCode KSPGetPC(KSP ksp, PC *pc)

Not Collective

Input Parameters#

  • ksp - iterative context obtained from KSPCreate()

Output Parameter#

  • pc - preconditioner context

See Also#

KSP: Linear System Solvers, KSPSetPC(), KSP

Level#

developer

Location#

src/ksp/ksp/interface/itfunc.c

Examples#

src/dm/impls/swarm/tutorials/ex1.c.html
src/dm/impls/stag/tutorials/ex1.c.html
src/dm/impls/stag/tutorials/ex2.c.html
src/dm/impls/stag/tutorials/ex3.c.html
src/dm/impls/stag/tutorials/ex4.c.html
src/ksp/pc/tutorials/ex1.c.html
src/ksp/pc/tutorials/ex2.c.html
src/ksp/ksp/tutorials/bench_pcsetup.c.html
src/ksp/ksp/tutorials/ex100.c.html
src/ksp/ksp/tutorials/ex100f.F90.html
src/ksp/ksp/tutorials/ex12.c.html


Edit on GitLab

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