MatFDColoringSetFromOptions

Sets coloring finite difference parameters from the options database.

Synopsis

int MatFDColoringSetFromOptions(MatFDColoring matfd)
Collective on MatFDColoring

The Jacobian is estimated with the differencing approximation

       J(u)_{:,i} = [J(u+h*dx_{i}) - J(u)]/h where
       h = error_rel*u[i]                    if  u[i] > umin
         = error_rel*umin                      else
       dx_{i} = (0, ... 1, .... 0)

Input Parameter

coloring -the coloring context

Options Database Keys

-mat_fd_coloring_error <err> - Sets <err> (square root of relative error in the function)
-mat_fd_coloring_umin <umin> - Sets umin
-mat_fd_coloring_freq <freq> - Sets frequency of computing a new Jacobian
-mat_fd_coloring_view - Activates basic viewing
-mat_fd_coloring_view_info - Activates viewing info
-mat_fd_coloring_view_draw - Activates drawing

Keywords

Mat, finite differences, parameters

Examples

src/snes/examples/tutorials/ex4.c

Location: src/mat/interface/fdmatrix.c
Matrix Index
Table of Contents