# ISColoringSetType
indicates if the coloring is for the local representation (including ghost points) or the global representation of a `Mat` 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISColoringSetType(ISColoring coloring, ISColoringType type)
```
Collective


## Input Parameters

- ***coloring -*** the coloring object
- ***type -*** either `IS_COLORING_LOCAL` or `IS_COLORING_GLOBAL`



## Notes
`IS_COLORING_LOCAL` can lead to faster computations since parallel ghost point updates are not needed for each color

With `IS_COLORING_LOCAL` the coloring is in the numbering of the local vector, for `IS_COLORING_GLOBAL` it is in the numbering of the global vector




## See Also
 `MatFDColoringCreate()`, `ISColoring`, `ISColoringType`, `ISColoringCreate()`, `IS_COLORING_LOCAL`, `IS_COLORING_GLOBAL`, `ISColoringGetType()`

## Level
intermediate

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


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