:orphan:
# PetscFECreate
Creates an empty `PetscFE` object. The type can then be set with `PetscFESetType()`.
## Synopsis
```
#include "petscfe.h"
PetscErrorCode PetscFECreate(MPI_Comm comm, PetscFE *fem)
```
Collective
## Input Parameter
- ***comm -*** The communicator for the `PetscFE` object
## Output Parameter
- ***fem -*** The `PetscFE` object
## See Also
`PetscFE`, `PetscFEType`, `PetscFESetType()`, `PetscFECreateDefault()`, `PETSCFEGALERKIN`
## Level
beginner
## Location
src/dm/dt/fe/interface/fe.c
## Implementations
PetscFECreate_Basic in src/dm/dt/fe/impls/basic/febasic.c
PetscFECreate_Composite in src/dm/dt/fe/impls/composite/fecomposite.c
PetscFECreate_OpenCL in src/dm/dt/fe/impls/opencl/feopencl.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)