:orphan:
# PetscFESetFromOptions
sets parameters in a `PetscFE` from the options database
## Synopsis
```
#include "petscfe.h"
PetscErrorCode PetscFESetFromOptions(PetscFE fem)
```
Collective
## 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
src/dm/dt/fe/interface/fe.c
## Examples
src/dm/impls/swarm/tutorials/ex1.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)