# SNESCompositeGetSNES
Gets one of the `SNES` objects in the composite  `SNESCOMPOSITE` 
## Synopsis
```
#include "petscsnes.h" 
PetscErrorCode SNESCompositeGetSNES(SNES snes, PetscInt n, SNES *subsnes)
```
Not Collective


## Input Parameters

- ***snes -*** the snes context
- ***n -*** the number of the composed snes requested



## Output Parameters

- ***subsnes -*** the `SNES` requested





## See Also
 `SNES`, `SNESCOMPOSITE`, `SNESCompositeAddSNES()`

## Level
Developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/composite/snescomposite.c.html#SNESCompositeGetSNES">src/snes/impls/composite/snescomposite.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/composite/snescomposite.c.html#SNESCompositeGetSNES_Composite">SNESCompositeGetSNES_Composite in src/snes/impls/composite/snescomposite.c</A><BR>


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