:orphan:
# DMNetworkGetNumSubNetworks
Gets the the number of subnetworks 
## Synopsis
```
#include "petscdmnetwork.h"  
PetscErrorCode DMNetworkGetNumSubNetworks(DM dm, PetscInt *nsubnet, PetscInt *Nsubnet)
```
Not Collective


## Input Parameter

- ***dm -*** the `DMNETWORK` object



## Output Parameters

- ***nsubnet -*** local number of subnetworks
- ***Nsubnet -*** global number of subnetworks





## See Also
 `DM`, `DMNETWORK`, `DMNetworkCreate()`, `DMNetworkSetNumSubNetworks()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/network/network.c.html#DMNetworkGetNumSubNetworks">src/dm/impls/network/network.c</A>


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


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