1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
4
<META NAME="GENERATOR" CONTENT="DOCTEXT">
5
<TITLE>MatColoringRegisterDynamic</TITLE>
7
<BODY BGCOLOR="FFFFFF">
8
<A NAME="MatColoringRegisterDynamic"><H1>MatColoringRegisterDynamic</H1></A>
9
Adds a new sparse matrix coloring to the matrix package.
10
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
12
int MatColoringRegisterDynamic(char *name_coloring,char *path,char *name_create,int (*routine_create)(MatColoring))
16
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
17
<TABLE border="0" cellpadding="0" cellspacing="0">
18
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>sname </B></TD><TD>- name of Coloring (for example MATCOLORING_SL)
20
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>path </B></TD><TD>- location of library where creation routine is
22
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>name </B></TD><TD>- name of function that creates the Coloring type, a string
24
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>function </B></TD><TD>- function pointer that creates the coloring
29
If dynamic libraries are used, then the fourth input argument (function)
32
<H3><FONT COLOR="#CC3333">Sample usage</FONT></H3>
34
<A HREF="../Mat/MatColoringRegisterDynamic.html#MatColoringRegisterDynamic">MatColoringRegisterDynamic</A>("my_color",/home/username/my_lib/lib/libO/solaris/mylib.a,
39
Then, your partitioner can be chosen with the procedural interface via
41
MatColoringSetType(part,"my_color")
43
or at runtime via the option
45
-mat_coloring_type my_color
48
$PETSC_ARCH and $BOPT occuring in pathname will be replaced with appropriate values.
50
<H3><FONT COLOR="#CC3333">Keywords</FONT></H3>
51
matrix, Coloring, register
54
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
55
<A HREF="../MatOrderings/MatColoringRegisterDestroy.html#MatColoringRegisterDestroy">MatColoringRegisterDestroy</A>(), <A HREF="../MatOrderings/MatColoringRegisterAll.html#MatColoringRegisterAll">MatColoringRegisterAll</A>()
56
<BR><P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>developer
57
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/mat/../../include/petscmat.h.html#MatColoringRegisterDynamic">src/mat/../../include/petscmat.h</A>
58
<BR><A HREF="./index.html">Index of all Mat routines</A>
59
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
60
<BR><A HREF="../singleindex.html">Index of all manual pages</A>