SNESSetConvergenceTest#

Sets the function that is to be used to test for convergence of the nonlinear iterative solution.

Synopsis#

Logically Collective

Input Parameters#

  • snes - the SNES context

  • SNESConvergenceTestFunction - routine to test for convergence

  • cctx - [optional] context for private data for the convergence routine (may be NULL)

  • destroy - [optional] destructor for the context (may be NULL; PETSC_NULL_FUNCTION in Fortran)

See Also#

SNES, SNESConvergedDefault(), SNESConvergedSkip(), SNESConvergenceTestFunction

Level#

advanced

Location#

src/snes/interface/snes.c

Examples#

src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex5f.F90.html
src/snes/tutorials/ex69.c.html


Edit on GitLab

Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages