petscmaster 20191213
MatColoringSetDistance
Sets the distance of the coloring
Synopsis
#include "petscmat.h"
PetscErrorCode MatColoringSetDistance(MatColoring mc,PetscInt dist)
Logically Collective on MatColoring
Input Parameters
 mc   the MatColoring context

 dist   the distance the coloring should compute

Notes
The distance of the coloring denotes the minimum number
of edges in the graph induced by the matrix any two vertices
of the same color are. Distance1 colorings are the classical
coloring, where no two vertices of the same color are adjacent.
distance2 colorings are useful for the computation of Jacobians.
See Also
MatColoringGetDistance(), MatColoringApply()
Level
beginner
Location
src/mat/color/interface/matcoloring.c
Index of all MatOrderings routines
Table of Contents for all manual pages
Index of all manual pages