# 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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fe/interface/fe.c.html#PetscFECreate">src/dm/dt/fe/interface/fe.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fe/impls/basic/febasic.c.html#PetscFECreate_Basic">PetscFECreate_Basic in src/dm/dt/fe/impls/basic/febasic.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fe/impls/composite/fecomposite.c.html#PetscFECreate_Composite">PetscFECreate_Composite in src/dm/dt/fe/impls/composite/fecomposite.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fe/impls/opencl/feopencl.c.html#PetscFECreate_OpenCL">PetscFECreate_OpenCL in src/dm/dt/fe/impls/opencl/feopencl.c</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)  
