#include "petscsnes.h" PetscErrorCode SNESSetConvergenceHistory(SNES snes,PetscReal a[],PetscInt its[],PetscInt na,PetscBool reset)Logically Collective on SNES Many br
snes | - iterative context obtained from SNESCreate() Many br | |
a | - array to hold history, this array will contain the function norms computed at each step Many br | |
its | - integer array holds the number of linear iterations for each solve. Many br | |
na | - size of a and its Many br | |
reset | - PETSC_TRUE indicates each new nonlinear solve resets the history counter to zero, Many brelse it continues storing new values for new nonlinear solves after the old ones Many br |
This routine is useful, e.g., when running a code for purposes Many brof accurate performance monitoring, when no I/O should be done Many brduring the section of code that is being timed. 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