ISColoringCreate

Generates an ISColoring context from lists (provided by each processor) of colors for each node.

Synopsis

#include "petscsys.h" 
#include "petscis.h"  
int ISColoringCreate(MPI_Comm comm,int n,const int colors[],ISColoring *iscoloring)
Collective on MPI_Comm

Input Parameters

comm - communicator for the processors creating the coloring
n - number of nodes on this processor
colors - array containing the colors for this processor, color numbers begin at 0.

Output Parameter

iscoloring -the resulting coloring data structure

Options Database Key

-is_coloring_view -Activates ISColoringView()

See Also

MatColoringCreate(), ISColoringView(), ISColoringDestroy()

Level:advanced
Location:
src/vec/is/utils/iscoloring.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex5s.c