# MatSNESMFGetSNES
returns the `SNES` associated with a matrix created with `MatCreateSNESMF()` 
## Synopsis
```
#include "petscsnes.h" 
#include "petscdm.h"   
PetscErrorCode MatSNESMFGetSNES(Mat J, SNES *snes)
```
Not collective


## Input Parameter

- ***J -*** the matrix



## Output Parameter

- ***snes -*** the `SNES` object





## See Also
 `Mat`, `SNES`, `MatCreateSNESMF()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/mf/snesmfj.c.html#MatSNESMFGetSNES">src/snes/mf/snesmfj.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/mf/snesmfj.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)  
