SNESSetDivergenceTolerance#

Sets the divergence tolerance used for the SNES divergence test.

Synopsis#

#include "petscsnes.h"  
PetscErrorCode SNESSetDivergenceTolerance(SNES snes, PetscReal divtol)

Logically Collective

Input Parameters#

  • snes - the SNES context

  • divtol - the divergence tolerance. Use PETSC_UNLIMITED to deactivate the test.

Options Database Key#

  • -snes_divergence_tolerance - Sets divtol

Notes#

Use PETSC_DETERMINE to use the default value from when the object’s type was set.

Fortran Note#

Use ``PETSC_DETERMINE_REALorPETSC_UNLIMITED_REAL`

See Also#

SNES: Nonlinear Solvers, SNES, SNESSolve(), SNESSetTolerances(), SNESGetDivergenceTolerance()

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