Nonlinear solvers - SNES

The Scalable Nonlinear Equations Solvers (SNES) component provides an easy-to-use interface to Newton-based methods for solving systems of nonlinear equations. SNES users can set various algorithmic options at runtime via the options database (e.g., specifying a trust region method via -snes_type tr ). SNES internally employs SLES for the solution of its linear systems. SNES users can also set SLES options directly in application codes by first extracting the SLES context from the SNES context via SNESGetSLES() and then directly calling various SLES (and KSP and PC) routines (e.g., PCSetType() ).

Beginner - Basic usage
SNESCreate SNESSetFunction SNESSetMinimizationFunction
SNESDestroy SNESSetGradient SNESSolve
SNESGetSLES SNESSetHessian SNESView
SNESSetFromOptions SNESSetJacobian
Intermediate - Setting options for algorithms and data structures
SNESClearMonitor SNESGetConvergedReason SNESSetConvergenceHistory
SNESConverged_EQ_LS SNESGetConvergenceHistory SNESSetLineSearchParams
SNESConverged_EQ_TR SNESGetFunctionNorm SNESSetMinimizationFunctionTolerance
SNESConverged_UM_LS SNESGetGradientNorm SNESSetMonitor
SNESConverged_UM_TR SNESGetIterationNumber SNESSetTolerances
SNESDefaultComputeHessian SNESGetLineSearchParams SNESSetTrustRegionTolerance
SNESDefaultComputeHessianColor SNESGetNumberLinearIterations SNESSetType
SNESDefaultComputeJacobian SNESGetNumberUnsuccessfulSteps SNESVecViewMonitor
SNESDefaultComputeJacobianColor SNESGetTolerances SNESVecViewUpdateMonitor
SNESDefaultMonitor SNESGetType
SNESGetApplicationContext SNESSetApplicationContext
Advanced - Setting more advanced options and customization
DAMGSetInitialGuess SNESGetOptionsPrefix SNESSetConvergenceTest
DAMGSetSNES SNESGetSolution SNESSetLineSearch
SNESAppendOptionsPrefix SNESGetSolutionUpdate SNESSetLineSearchCheck
SNESCubicLineSearch SNESNoLineSearch SNESSetOptionsPrefix
SNESGetFunction SNESNoLineSearchNoNorms SNESSetUp
SNESGetGradient SNESQuadraticLineSearch SNES_KSP_SetConvergenceTestEW
SNESGetHessian SNESRegisterAll SNES_KSP_SetParametersEW
SNESGetJacobian SNESRegisterDestroy
SNESGetMinimizationFunction SNESRegisterDynamic
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
SNESComputeFunction SNESComputeHessian SNESComputeMinimizationFunction
SNESComputeGradient SNESComputeJacobian

Table of Contents