#include "petscsnes.h" PetscErrorCode SNESGetLagJacobian(SNES snes,PetscInt *lag)Not Collective
snes | - the SNES context |
lag | - -1 indicates NEVER rebuild, 1 means rebuild every time the Jacobian is computed within a single nonlinear solve, 2 means every second time the Jacobian is built etc. |