:orphan:
# DMPlexSetPartitionBalance
Should distribution of the `DM` attempt to balance the shared point partition? 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexSetPartitionBalance(DM dm, PetscBool flg)
```

## Input Parameters

- ***dm -*** The `DMPLEX` object
- ***flg -*** Balance the partition?





## See Also
 `DMPLEX`, `DMPlexDistribute()`, `DMPlexGetPartitionBalance()`

## Level
intermediate

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


---
[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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
