# PetscDualSpaceSetUp
Construct a basis for a `PetscDualSpace` 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceSetUp(PetscDualSpace sp)
```
Collective on sp


## Input Parameter

- ***sp -*** the `PetscDualSpace` object to setup





## See Also
 `PetscDualSpaceView()`, `PetscDualSpaceDestroy()`, `PetscDualSpace`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/interface/dualspace.c.html#PetscDualSpaceSetUp">src/dm/dt/dualspace/interface/dualspace.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html">src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceSetUp_Lagrange">PetscDualSpaceSetUp_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/refined/dualspacerefined.c.html#PetscDualSpaceSetUp_Refined">PetscDualSpaceSetUp_Refined in src/dm/dt/dualspace/impls/refined/dualspacerefined.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/simple/dspacesimple.c.html#PetscDualSpaceSetUp_Simple">PetscDualSpaceSetUp_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/interface/dualspace.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)  
