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 Parameter#

  • ksp - iterative context obtained from KSPCreate()

Output Parameter#

  • pc - preconditioner context

See Also#

KSP: Linear System Solvers, KSPSetPC(), KSP, PC

Level#

developer

Location#

src/ksp/ksp/interface/itfunc.c

Examples#

src/tao/pde_constrained/tutorials/parabolic.c
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/constrained/tutorials/maros.c
src/tao/unconstrained/tutorials/eptorsion3.c
src/tao/unconstrained/tutorials/rosenbrock1.c
src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex3.c
src/tao/constrained/tutorials/ex1.c
src/tao/unconstrained/tutorials/eptorsion2.c
src/tao/unconstrained/tutorials/eptorsion1.c


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