# PetscDualSpaceDuplicate
Creates a duplicate `PetscDualSpace` object that is not setup. 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceDuplicate(PetscDualSpace sp, PetscDualSpace *spNew)
```
Collective on sp


## Input Parameter

- ***sp -*** The original `PetscDualSpace`



## Output Parameter

- ***spNew -*** The duplicate `PetscDualSpace`





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

## Level
beginner

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceDuplicate_Lagrange">PetscDualSpaceDuplicate_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/simple/dspacesimple.c.html#PetscDualSpaceDuplicate_Simple">PetscDualSpaceDuplicate_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)  
