# PetscDualSpaceSimpleSetDimension
Set the number of functionals in the dual space basis 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceSimpleSetDimension(PetscDualSpace sp, PetscInt dim)
```
Logically Collective on sp


## Input Parameters

- ***sp  -*** the `PetscDualSpace`
- ***dim -*** the basis dimension





## See Also
 `PetscDualSpace`, `PetscDualSpaceSimpleSetFunctional()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/simple/dspacesimple.c.html#PetscDualSpaceSimpleSetDimension">src/dm/dt/dualspace/impls/simple/dspacesimple.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/simple/dspacesimple.c.html#PetscDualSpaceSimpleSetDimension_Simple">PetscDualSpaceSimpleSetDimension_Simple in src/dm/dt/dualspace/impls/simple/dspacesimple.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/dualspace/impls/simple/dspacesimple.c)


[Index of all DUALSPACE routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
