SNESSetConvergenceHistory

Sets the array used to hold the convergence history.

Synopsis

int SNESSetConvergenceHistory(SNES snes, double *a, int na)
Collective on SNES

Input Parameters

snes - iterative context obtained from SNESCreate()
a - array to hold history
na - size of a

Notes

If set, this array will contain the function norms ( forSNES_NONLINEAR_EQUATIONS methods) or gradient norms(for SNES_UNCONSTRAINED_MINIMIZATION methods) computedat each step.

This routine is useful, e.g., when running a code for purposesof accurate performance monitoring, when no I/O should be doneduring the section of code that is being timed.

Keywords

SNES, set, convergence, history

Examples

src/snes/examples/tutorials/ex4.c

Location: src/snes/interface/snes.c
SNES Index
Table of Contents