#include "petscsnes.h" PetscErrorCode SNESComputeJacobian(SNES snes,Vec X,Mat *A,Mat *B,MatStructure *flg)Collective on SNES and Mat
snes | - the SNES context | |
x | - input vector |
A | - Jacobian matrix | |
B | - optional preconditioning matrix | |
flag | - flag indicating matrix structure (one of, SAME_NONZERO_PATTERN,DIFFERENT_NONZERO_PATTERN,SAME_PRECONDITIONER) |
-snes_lag_preconditioner <lag> | - . -snes_lag_jacobian <lag> | |
-snes_compare_explicit | - Compare the computed Jacobian to the finite difference Jacobian and output the differences | |
-snes_compare_explicit_draw | - Compare the computed Jacobian to the finite difference Jacobian and draw the result | |
-snes_compare_explicit_contour | - Compare the computed Jacobian to the finite difference Jacobian and draw a contour plot with the result | |
-snes_compare_operator | - Make the comparison options above use the operator instead of the preconditioning matrix |
See KSPSetOperators() for important information about setting the flag parameter.
Level:developer
Location:src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages