:orphan:
# PetscFVSetUp
Setup the data structures for the `PetscFV` based on the `PetscFVType` provided by `PetscFVSetType()`
## Synopsis
```
#include "petscfv.h"
PetscErrorCode PetscFVSetUp(PetscFV fvm)
```
Collective
## Input Parameter
- ***fvm -*** the `PetscFV` object to setup
## See Also
`PetscFV`, `PetscFVView()`, `PetscFVDestroy()`
## Level
intermediate
## Location
src/dm/dt/fv/interface/fv.c
## Examples
src/dm/impls/plex/tutorials/ex3f90.F90
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/fv/interface/fv.c)
[Index of all FV routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)