MatFDColoringSetFunction
Sets the function to use for computing the Jacobian.
Synopsis
int MatFDColoringSetFunction(MatFDColoring matfd,int (*f)(void),void *fctx)
Collective on MatFDColoring
Input Parameters
coloring | - the coloring context
|
f | - the function
|
fctx | - the optional user-defined function context
|
Notes
In Fortran you must call MatFDColoringSetFunctionSNES() for a coloring object to
be used with the SNES solvers and MatFDColoringSetFunctionTS() if it is to be used
with the TS solvers.
Keywords
Mat, Jacobian, finite differences, set, function
Examples
src/snes/examples/tutorials/ex8.c
Level:intermediate
Location:src/mat/matfd/fdmatrix.c
Matrix Index
Table of Contents