# PFSetFromOptions
Sets PF options from the options database. 
## Synopsis
```
#include "petscpf.h" 
PetscErrorCode PFSetFromOptions(PF pf)
```
Collective


## Input Parameters

- ***pf -*** the mathematical function context



## Options Database Keys


## Notes
To see all options, run your program with the -help option
or consult the users manual.




## See Also


## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/interface/pf.c.html#PFSetFromOptions">src/vec/pf/interface/pf.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/tutorials/ex4.c.html">src/dm/tutorials/ex4.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/constant/const.c.html#PFSetFromOptions_Constant">PFSetFromOptions_Constant in src/vec/pf/impls/constant/const.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/matlab/cmatlab.c.html#PFSetFromOptions_Matlab">PFSetFromOptions_Matlab in src/vec/pf/impls/matlab/cmatlab.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/pf/impls/string/cstring.c.html#PFSetFromOptions_String">PFSetFromOptions_String in src/vec/pf/impls/string/cstring.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
