:orphan: # PFSetType Builds `PF` for a particular function ## Synopsis ``` #include "petscpf.h" PetscErrorCode PFSetType(PF pf, PFType type, void *ctx) ``` Collective ## Input Parameters - ***pf -*** the function context. - ***type -*** a known method - ***ctx -*** optional type dependent context ## Options Database Key - ***-pf_type -*** Sets PF type ## Note See "petsc/include/petscpf.h" for available methods (for instance, `PFCONSTANT`) ## See Also `PF`, `PFSet()`, `PFRegister()`, `PFCreate()`, `DMDACreatePF()` ## Level intermediate ## Location src/vec/pf/interface/pf.c ## Examples src/snes/tutorials/ex22.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/pf/interface/pf.c) [Index of all PF routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)