# DMCompositeGetNumberDM
Get's the number of `DM` objects in the `DMCOMPOSITE` representation. 
## Synopsis
```
#include "petscdmcomposite.h"  
PetscErrorCode DMCompositeGetNumberDM(DM dm, PetscInt *nDM)
```
Not Collective


## Input Parameter

- ***dm -*** the `DMCOMPOSITE` object



## Output Parameter

- ***nDM -*** the number of `DM`





## See Also
 `DMCOMPOSITE`, `DM`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/composite/pack.c.html#DMCompositeGetNumberDM">src/dm/impls/composite/pack.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/utils/dmplexlandau/tutorials/ex2.c.html">src/ts/utils/dmplexlandau/tutorials/ex2.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/composite/pack.c)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
