# PetscQuadratureDuplicate
Create a deep copy of the `PetscQuadrature` object 
## Synopsis
```
#include "petscdt.h" 
PetscErrorCode PetscQuadratureDuplicate(PetscQuadrature q, PetscQuadrature *r)
```
Collective on q


## Input Parameter

- ***q  -*** The `PetscQuadrature` object



## Output Parameter

- ***r  -*** The new `PetscQuadrature` object





## See Also
 `PetscQuadrature`, `PetscQuadratureCreate()`, `PetscQuadratureDestroy()`, `PetscQuadratureGetData()`

## Level
beginner

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


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


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