# SNESCompositeGetNumber
Get the number of subsolvers in the `SNESCOMPOSITE` 
## Synopsis
```
#include "petscsnes.h" 
PetscErrorCode SNESCompositeGetNumber(SNES snes, PetscInt *n)
```
Logically Collective on snes


## Input Parameter
snes - the snes context


## Output Parameter
n - the number of subsolvers




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

## Level
Developer

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


---
[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)  
