:orphan:
# 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
src/dm/dt/dualspace/interface/dualspace.c
## Examples
src/dm/dt/dualspace/impls/lagrange/tutorials/ex1.c
## Implementations
PetscDualSpaceCreate_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c
PetscDualSpaceCreate_Refined in src/dm/dt/dualspace/impls/refined/dualspacerefined.c
PetscDualSpaceCreate_Simple in src/dm/dt/dualspace/impls/simple/dspacesimple.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)