#include "petscsnes.h" PetscErrorCode SNESGetIterationNumber(SNES snes,PetscInt *iter)Not Collective Many br
This is useful for using lagged Jacobians (where one does not recompute the Many brJacobian at each SNES iteration). For example, the code Many br
ierr = SNESGetIterationNumber(snes,&it); if (!(it % 2)) { [compute Jacobian here] }Many brcan be used in your ComputeJacobian() function to cause the Jacobian to be Many brrecomputed every second SNES iteration. Many br
Many br
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