MatFDColoringCreate

Creates a matrix coloring context for finite difference computation of Jacobians.

Synopsis

#include "petscmat.h" 
int MatFDColoringCreate(Mat mat,ISColoring iscoloring,MatFDColoring *color)
Collective on Mat

Input Parameters

mat - the matrix containing the nonzero structure of the Jacobian
iscoloring - the coloring of the matrix

Output Parameter

color -the new coloring context

Options Database Keys

-mat_fd_coloring_view - Activates basic viewing or coloring
-mat_fd_coloring_view_draw - Activates drawing of coloring
-mat_fd_coloring_view_info - Activates viewing of coloring info

See Also

MatFDColoringDestroy(),SNESDefaultComputeJacobianColor(), ISColoringCreate(),
MatFDColoringSetFunction(), MatFDColoringSetFromOptions()

Level:intermediate
Location:
src/mat/matfd/fdmatrix.c
Index of all MatFD routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/snes/examples/tutorials/ex4.c
src/snes/examples/tutorials/ex5c.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex5s.c
src/snes/examples/tutorials/ex9.c
src/snes/examples/tutorials/ex4f.F