# DMPlexIsDistributed
Find out whether this DM is distributed, i.e. more than one rank owns some points. 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexIsDistributed(DM dm, PetscBool *distributed)
```
Collective


## Input Parameter

- ***dm      -*** The DM object



## Output Parameter

- ***distributed -*** Flag whether the DM is distributed





## Notes
This currently finds out whether at least two ranks have any DAG points.
This involves MPI_Allreduce() with one integer.
The result is currently not stashed so every call to this routine involves this global communication.


## See Also
 `DMPlexDistribute()`, `DMPlexGetOverlap()`, `DMPlexIsInterpolated()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexdistribute.c.html#DMPlexIsDistributed">src/dm/impls/plex/plexdistribute.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex5.c.html">src/dm/impls/plex/tutorials/ex5.c.html</A><BR>


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


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