# PetscFESetType
Builds a particular `PetscFE` 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscFESetType(PetscFE fem, PetscFEType name)
```
Collective on fem


## Input Parameters

- ***fem  -*** The `PetscFE` object
- ***name -*** The kind of FEM space



## Options Database Key

- ***-petscfe_type <type> -*** Sets the PetscFE type; use -help for a list of available types





## See Also
 `PetscFEType`, `PetscFE`, `PetscFEGetType()`, `PetscFECreate()`

## Level
intermediate

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


---
[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)  
