# PetscDualSpaceCreate
Creates an empty `PetscDualSpace` object. The type can then be set with `PetscDualSpaceSetType()`. 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceCreate(MPI_Comm comm, PetscDualSpace *sp)
```
Collective


## Input Parameter

- ***comm -*** The communicator for the `PetscDualSpace` object



## Output Parameter

- ***sp -*** The `PetscDualSpace` object





## See Also
 `PetscDualSpace`, `PetscDualSpaceSetType()`, `PETSCDUALSPACELAGRANGE`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/interface/dualspace.c.html#PetscDualSpaceCreate">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#PetscDualSpaceCreate_Lagrange">PetscDualSpaceCreate_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#PetscDualSpaceCreate_Refined">PetscDualSpaceCreate_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#PetscDualSpaceCreate_Simple">PetscDualSpaceCreate_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)  
