petsc-master 2014-09-16
Report Typos and Errors

SNESTEST

Test hand-coded Jacobian against finite difference Jacobian

Options Database

-snes_test_display -Display difference between approximate and hand-coded Jacobian

Notes: This solver is not a solver and does not converge to a solution. SNESTEST checks the Jacobian at three points: the 0, 1, and -1 solution vectors. After doing these three tests, it always aborts with the error message "SNESTest aborts after Jacobian test". No other behavior is to be expected. It may be similarly used to check if a SNES function is the gradient of an objective function set with SNESSetObjective().

See Also

SNESCreate(), SNES, SNESSetType(), SNESNEWTONLS, SNESNEWTONTR

Level:intermediate
Location:
src/snes/impls/test/snestest.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages