# MatColoringGetMaxColors
Gets the maximum number of colors 
## Synopsis
```
#include "petscmat.h"  
PetscErrorCode MatColoringGetMaxColors(MatColoring mc, PetscInt *maxcolors)
```
Logically Collective


## Input Parameter

- ***mc -*** the `MatColoring` context



## Output Parameter

- ***maxcolors -*** the current maximum number of colors to produce





## See Also
 `MatColoring`, `MatColoringSetMaxColors()`, `MatColoringApply()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/color/interface/matcoloring.c.html#MatColoringGetMaxColors">src/mat/color/interface/matcoloring.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/color/interface/matcoloring.c)


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