#include "petscsnes.h" PetscErrorCode SNESGetConvergenceHistory(SNES snes,PetscReal *a[],PetscInt *its[],PetscInt *na)Not Collective
snes | - iterative context obtained from SNESCreate() |
a | - array to hold history | |
its | - integer array holds the number of linear iterations (or negative if not converged) for each solve. | |
na | - size of a and its |
call SNESGetConvergenceHistory(SNES snes, integer na, integer ierr)
This routine is useful, e.g., when running a code for purposes of accurate performance monitoring, when no I/O should be done during the section of code that is being timed.