# DMNetworkMonitorCreate
Creates a network monitor context 
## Synopsis
```
#include "petscdmnetwork.h"  
PetscErrorCode DMNetworkMonitorCreate(DM network, DMNetworkMonitor *monitorptr)
```
Collective


## Input Parameters

- ***network -*** network to monitor



## Output Parameters

- ***monitorptr -*** Location to put network monitor context





## See Also
 `DMNetworkMonitorDestroy()`, `DMNetworkMonitorAdd()`

## Level
intermediate

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/network/networkmonitor.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)  
