petsc-3.4.5 2014-06-29

DMCreateColoring

Gets coloring for a DMDA or DMComposite

Synopsis

#include "petscdm.h"     
PetscErrorCode  DMCreateColoring(DM dm,ISColoringType ctype,MatType mtype,ISColoring *coloring)
Collective on DM

Input Parameter

dm - the DM object
ctype - IS_COLORING_GHOSTED or IS_COLORING_GLOBAL
matype - either MATAIJ or MATBAIJ

Output Parameter

coloring -the coloring

See Also

DMDestroy(), DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateMatrix()

Level:developer
Location:
src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex14.c.html