# SNESNASMGetSNES
Gets a subsolver 
## Synopsis
```
#include "petscsnes.h"   
PetscErrorCode SNESNASMGetSNES(SNES snes, PetscInt i, SNES *subsnes)
```
Not collective


## Input Parameters

- ***snes -*** the SNES context
- ***i -*** the number of the subsnes to get



## Output Parameters

- ***subsnes -*** the subsolver context





## See Also
 `SNESNASM`, `SNESNASMGetNumber()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/nasm/nasm.c.html#SNESNASMGetSNES">src/snes/impls/nasm/nasm.c</A>


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