:orphan:
# DMGetDMKSPWrite
get write access to private `DMKSP` context from a `DM` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode DMGetDMKSPWrite(DM dm, DMKSP *kspdm)
```
Logically Collective


## Input Parameter

- ***dm -*** `DM` used with a `KSP`



## Output Parameter

- ***kspdm -*** private `DMKSP` context





## See Also
 [](ch_ksp), `DMKSP`, `DM`, `KSP`, `DMGetDMKSP()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/dmksp.c.html#DMGetDMKSPWrite">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)  
