# DMPlexGetOrdering1D
Reorder the vertices so that the mesh is in a line 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscmat.h"      
PetscErrorCode DMPlexGetOrdering1D(DM dm, IS *perm)
```
Collective on dm


## Input Parameter

- ***dm -*** The DMPlex object



## Output Parameter

- ***perm -*** The point permutation as an IS, perm[old point number] = new point number





## See Also
 `DMPlexGetOrdering()`, `DMPlexPermute()`, `MatGetOrdering()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexreorder.c.html#DMPlexGetOrdering1D">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)  
