DMSetISColoringType — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# DMSetISColoringType

Sets the type of coloring, `IS_COLORING_GLOBAL` or `IS_COLORING_LOCAL` that is created by the `DM`

## Synopsis

    #include "petscdm.h"
    #include "petscdmlabel.h"
    #include "petscds.h"
    PetscErrorCode DMSetISColoringType(DM dm, ISColoringType ctype)

Logically Collective

## Input Parameters

- dm - the `DM` context

- ctype - the matrix type

## Options Database Key

- -dm_is_coloring_type - global or local

## See Also

DM Basics, `DM`, `DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMCreateMatrix()`, `DMCreateMassMatrix()`, `DMSetMatrixPreallocateOnly()`, `MatType`, `DMGetMatType()`, `DMGetISColoringType()`, `ISColoringType`, `IS_COLORING_GLOBAL`, `IS_COLORING_LOCAL`

## Level

intermediate

## Location

src/dm/interface/dm.c

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages