# DMPlexPermute
Reorder the mesh according to the input permutation 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscmat.h"      
PetscErrorCode DMPlexPermute(DM dm, IS perm, DM *pdm)
```
Collective on dm


## Input Parameters

- ***dm -*** The DMPlex object
- ***perm -*** The point permutation, perm[old point number] = new point number



## Output Parameter

- ***pdm -*** The permuted DM





## See Also
 `MatPermute()`

## Level
intermediate

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


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