petsc-3.8.4 2018-03-24
Report Typos and Errors

PCCreate

Creates a preconditioner context.

Synopsis

#include "petscksp.h" 
PetscErrorCode  PCCreate(MPI_Comm comm,PC *newpc)
Collective on MPI_Comm

Input Parameter

comm -MPI communicator

Output Parameter

pc -location to put the preconditioner context

Notes

The default preconditioner for sparse matrices is PCILU or PCICC with 0 fill on one process and block Jacobi with PCILU or ICC in parallel. For dense matrices it is always PCNONE.

Keywords

PC, create, context

See Also

PCSetUp(), PCApply(), PCDestroy()

Level:developer
Location:
src/ksp/pc/interface/precon.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex21f.F.html