petsc-3.7.1 2016-05-15
SNESGetLagJacobian
Indicates how often the Jacobian is rebuilt. See SNESGetLagPreconditioner() to determine when the preconditioner is rebuilt
Synopsis
#include "petscsnes.h"
PetscErrorCode SNESGetLagJacobian(SNES snes,PetscInt *lag)
Not Collective Many br
Input Parameter
snes -the SNES context Many br
Output Parameter
lag --1 indicates NEVER rebuild, 1 means rebuild every time the Jacobian is computed within a single nonlinear solve, 2 means every second time Many brthe Jacobian is built etc. Many br
Options Database Keys
-snes_lag_jacobian <lag> - Many brNotes: Many brThe default is 1 Many brThe jacobian is ALWAYS built in the first iteration of a nonlinear solve unless lag is -1 Many br
Many br
Keywords
SNES, nonlinear, set, convergence, tolerances
See Also
SNESSetTrustRegionTolerance(), SNESSetLagJacobian(), SNESSetLagPreconditioner(), SNESGetLagPreconditioner()
Level:intermediate
Location:src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages