PetscErrorCode MatColoringRegisterDynamic(const char *name_coloring,const char *path,const char *name_create,PetscErrorCode (*routine_create)(MatColoring))Not Collective
sname | - name of Coloring (for example MATCOLORINGSL) | |
path | - location of library where creation routine is | |
name | - name of function that creates the Coloring type, a string | |
function | - function pointer that creates the coloring |
If dynamic libraries are used, then the fourth input argument (function) is ignored.
MatColoringRegisterDynamic("my_color",/home/username/my_lib/lib/libO/solaris/mylib.a, "MyColor",MyColor);
Then, your partitioner can be chosen with the procedural interface via
MatColoringSetType(part,"my_color")or at runtime via the option
-mat_coloring_type my_color
$PETSC_ARCH occuring in pathname will be replaced with appropriate values.
Level:developer
Location:src/mat/../../include/petscmat.h
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages