# PetscFVSetFromOptions
sets parameters in a `PetscFV` from the options database 
## Synopsis
```
#include "petscfv.h" 
PetscErrorCode PetscFVSetFromOptions(PetscFV fvm)
```
Collective on fvm


## Input Parameter

- ***fvm -*** the `PetscFV` object to set options for



## Options Database Key

- ***-petscfv_compute_gradients <bool> -*** Determines whether cell gradients are calculated





## See Also
 `PetscFV`, `PetscFVView()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fv/interface/fv.c.html#PetscFVSetFromOptions">src/dm/dt/fv/interface/fv.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11.c.html">src/ts/tutorials/ex11.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11_sa.c.html">src/ts/tutorials/ex11_sa.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex18.c.html">src/ts/tutorials/ex18.c.html</A><BR>


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