#include "petscdmplex.h" #include "petscsnes.h" PetscErrorCode DMSNESCheckJacobian(SNES snes, DM dm, Vec u, PetscReal tol, PetscBool *isLinear, PetscReal *convRate)
snes | - the SNES object | |
dm | - the DM | |
u | - a DM vector | |
tol | - A tolerance for the check, or -1 to print the results instead |
isLinear | - Flag indicaing that the function looks linear, or NULL | |
convRate | - The rate of convergence of the linear model, or NULL |