:orphan: # 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 src/snes/mf/snesmfj.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)