# PetscFEGetBasisSpace
Returns the `PetscSpace` used for the approximation of the solution for the `PetscFE` 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscFEGetBasisSpace(PetscFE fem, PetscSpace *sp)
```
Not collective


## Input Parameter

- ***fem -*** The `PetscFE` object



## Output Parameter

- ***sp -*** The `PetscSpace` object





## See Also
 `PetscFE`, `PetscSpace`, `PetscFECreate()`

## Level
intermediate

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