## Nonlinear solvers - SNES: Examples

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 KSP for the solution of its linear systems. SNES users can also set KSP options directly in application codes by first extracting the KSP context from the SNES context via SNESGetKSP() and then directly calling various KSP (and KSP and PC) routines (e.g., PCSetType() ).

ex1.c: Newton's method to solve a two-variable system, sequentially
ex2.c: Newton method to solve u'' + u^{2} = f, sequentially
ex3.c: Newton methods to solve u'' + u^{2} = f in parallel
ex5.c: Bratu nonlinear PDE in 2d
ex5s.c: 2d Bratu problem in shared memory parallel with SNES
ex6.c: u`` + u^{2} = f
ex14.c: Bratu nonlinear PDE in 3d
ex18.c: Nonlinear Radiative Transport PDE with multigrid in 2d
ex19.c: Nonlinear driven cavity with multigrid in 2d
ex20.c: Nonlinear Radiative Transport PDE with multigrid in 3d
ex21.c: Solves PDE optimization problem
ex22.c: Solves PDE optimization problem
ex23.c: Solves PDE problem from ex22
ex24.c: Solves PDE optimization problem of ex22
ex25.c: Minimum surface problem\n\
ex26.c: Grad-Shafranov solver for one dimensional CHI equilibrium
ex27.c: Nonlinear driven cavity with multigrid and pusedo timestepping 2d
ex29.c: Hall MHD with in two dimensions with time stepping and multigrid
ex30.c: static char help[] =
makefile