:orphan: # PFDestroy Destroys `PF` context that was created with `PFCreate()`. ## Synopsis ``` #include "petscpf.h" PetscErrorCode PFDestroy(PF *pf) ``` Collective ## Input Parameter - ***pf -*** the function context ## See Also `PF`, `PFCreate()`, `PFSet()`, `PFSetType()` ## Level beginner ## Location src/vec/pf/interface/pf.c ## Examples src/dm/tutorials/ex4.c
src/snes/tutorials/ex22.c
## Implementations PFDestroy_Constant in src/vec/pf/impls/constant/const.c
PFDestroy_Identity in src/vec/pf/impls/constant/const.c
PFDestroy_Matlab in src/vec/pf/impls/matlab/cmatlab.c
PFDestroy_String in src/vec/pf/impls/string/cstring.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)