:orphan:
# 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 Parameter
- ***subsnes -*** the `SNES` requested
## See Also
`SNES`, `SNESCOMPOSITE`, `SNESCompositeAddSNES()`
## Level
Developer
## Location
src/snes/impls/composite/snescomposite.c
## Implementations
SNESCompositeGetSNES_Composite in src/snes/impls/composite/snescomposite.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)