:orphan:
# DMKSPCopy
copies the information in a `DMKSP` to another `DMKSP` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode DMKSPCopy(DMKSP kdm, DMKSP nkdm)
```
Not Collective


## Input Parameters

- ***kdm -*** Original `DMKSP`
- ***nkdm -*** `DMKSP` to receive the data, created with `DMKSPCreate()`





## See Also
 [](ch_ksp), `DMKSPCreate()`, `DMKSPDestroy()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/dmksp.c.html#DMKSPCopy">src/ksp/ksp/interface/dmksp.c</A>


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


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