KSPGetPC#
Returns a pointer to the preconditioner context with the KSP
Synopsis#
#include "petscksp.h"
#include "petscmat.h"
PetscErrorCode KSPGetPC(KSP ksp, PC *pc)
Not Collective
Input Parameter#
ksp - iterative solver obtained from
KSPCreate()
Output Parameter#
pc - preconditioner context
Note#
The PC
is created if it does not already exist.
Developer Note#
Calls KSPCheckPCMPI()
to check if the KSP
is effected by -mpi_linear_solver_server
See Also#
Level#
beginner
Location#
Examples#
src/snes/tutorials/ex31.c
src/snes/tutorials/ex56.c
src/snes/tutorials/ex1f.F90
src/snes/tutorials/ex3.c
src/snes/tutorials/ex28.c
src/snes/tutorials/ex1.c
src/snes/tutorials/ex99.c
src/snes/tutorials/ex70.c
src/ksp/pc/tutorials/ex1.c
src/snes/tutorials/ex30.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages