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/ksp/ksp/tutorials/ex60.c
src/ksp/ksp/tutorials/ex55.c
src/ksp/ksp/tutorials/ex69.c
src/ksp/ksp/tutorials/ex19.c
src/ksp/ksp/tutorials/ex35.cxx
src/ksp/ksp/tutorials/ex100.c
src/ksp/ksp/tutorials/ex53.c
src/ksp/ksp/tutorials/ex7f.F90
src/ksp/ksp/tutorials/ex13.c
src/ksp/ksp/tutorials/ex81a.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages