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


## Input Parameters

- ***fem -*** The `PetscFE` object
- ***sp -*** The `PetscSpace` object





## Developer Note
There is `PetscFESetBasisSpace()` but the `PetscFESetDualSpace()`, likely the Basis is unneeded in the function name


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

## Level
intermediate

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