:orphan:
# DMCompositeGetNumberDM
Gets 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
src/dm/impls/composite/pack.c
## Examples
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)