petsc-3.7.1 2016-05-15
Report Typos and Errors

MatColoringRegister

Adds a new sparse matrix coloring to the matrix package.

Synopsis

#include "petscmat.h"  
PetscErrorCode  MatColoringRegister(const char sname[],PetscErrorCode (*function)(MatColoring))
Not Collective Many br

Input Parameters

sname - name of Coloring (for example MATCOLORINGSL) Many br
function - function pointer that creates the coloring Many br

Many br

Sample usage

   MatColoringRegister("my_color",MyColor);
Many br

Then, your partitioner can be chosen with the procedural interface via Many br

    MatColoringSetType(part,"my_color")
or at runtime via the option Many br
    -mat_coloring_type my_color

Keywords

matrix, Coloring, register

See Also

MatColoringRegisterDestroy(), MatColoringRegisterAll()

Level:developer
Location:
src/mat/color/interface/matcoloring.c
Index of all MatOrderings routines
Table of Contents for all manual pages
Index of all manual pages