:orphan:
# ISPartitioningToNumbering
Takes an `IS' that represents a partitioning (the MPI rank that each local entry belongs to) and on each MPI process generates an `IS` that contains a new global node number in the new ordering for each entry 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISPartitioningToNumbering(IS part, IS *is)
```
Collective


## Input Parameter

- ***partitioning -*** a partitioning as generated by `MatPartitioningApply()` or `MatPartitioningApplyND()`



## Output Parameter

- ***is -*** on each processor the index set that defines the global numbers
(in the new numbering) for all the nodes currently (before the partitioning)
on that processor





## Note
The resulting `IS` tells where each local entry is mapped to in a new global ordering


## See Also
 [](sec_scatter), `IS`, `MatPartitioningCreate()`, `AOCreateBasic()`, `ISPartitioningCount()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/utils/iscoloring.c.html#ISPartitioningToNumbering">src/vec/is/is/utils/iscoloring.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex64.c.html">src/ksp/ksp/tutorials/ex64.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/utils/iscoloring.c)


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