# PetscFESetFromOptions
sets parameters in a `PetscFE` from the options database 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscFESetFromOptions(PetscFE fem)
```
Collective on fem


## Input Parameter

- ***fem -*** the `PetscFE` object to set options for



## Options Database Keys

- ***-petscfe_num_blocks  -*** the number of cell blocks to integrate concurrently
- ***-petscfe_num_batches -*** the number of cell batches to integrate serially





## See Also
 `PetscFEV`, `PetscFEView()`

## Level
intermediate

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

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/fe/interface/fe.c)


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