# DMAdaptorGetSolver
Gets the solver used to produce discrete solutions 
## Synopsis
```
#include "petscdmadaptor.h" 
PetscErrorCode DMAdaptorGetSolver(DMAdaptor adaptor, SNES *snes)
```
Not collective


## Input Parameter

- ***adaptor   -*** The `DMAdaptor` object



## Output Parameter

- ***snes -*** The solver





## See Also
 `DMAdaptor`, `DMAdaptorSetSolver()`, `DMAdaptorCreate()`, `DMAdaptorAdapt()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/utils/dmadapt.c.html#DMAdaptorGetSolver">src/snes/utils/dmadapt.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmadapt.c)


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