# DMNetworkSetNumSubNetworks
Sets the number of subnetworks 
## Synopsis
```
#include "petscdmnetwork.h"  
PetscErrorCode DMNetworkSetNumSubNetworks(DM dm, PetscInt nsubnet, PetscInt Nsubnet)
```
Collective on dm


## Input Parameters

- ***dm -*** the dm object
- ***nsubnet -*** local number of subnetworks
- ***Nsubnet -*** global number of subnetworks





## See Also
 `DMNetworkCreate()`, `DMNetworkGetNumSubNetworks()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/network/network.c.html#DMNetworkSetNumSubNetworks">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
