# DMDACreatePF
Creates an appropriately dimensioned `PF` mathematical function object from a DMDA. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDACreatePF(DM da, PF *pf)
```
Collective on da


## Input Parameter

- ***da -*** initial distributed array



## Output Parameter

- ***pf -*** the mathematical function object





## Fortran Note
Not supported from Fortran


## See Also
 `DM`, `PF`, `DMDA`, `DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMDestroy()`, `DMCreateGlobalVector()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/dapf.c.html#DMDACreatePF">src/dm/impls/da/dapf.c</A>

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/dapf.c)


[Index of all DMDA routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
