:orphan:
# MatFDColoringUseDM
allows a `MatFDColoring` object to use the `DM` associated with the matrix to compute a `IS_COLORING_LOCAL` coloring
## Synopsis
```
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode MatFDColoringUseDM(Mat coloring, MatFDColoring fdcoloring)
```
## Input Parameter
- ***coloring -*** the `MatFDColoring` object
## Developer Note
this routine exists because the PETSc `Mat` library does not know about the `DM` objects
## See Also
[](ch_dmbase), `DM`, `MatFDColoring`, `MatFDColoringCreate()`, `ISColoringType`
## Level
advanced
## Location
src/dm/interface/dm.c
## Examples
src/snes/tutorials/ex14.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dm.c)
[Index of all DM routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)