SNESCreate

Creates a nonlinear solver context.

Synopsis

int SNESCreate(MPI_Comm comm,SNESProblemType type,SNES *outsnes)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator
type - type of method, either SNES_NONLINEAR_EQUATIONS (for systems of nonlinear equations) or SNES_UNCONSTRAINED_MINIMIZATION (for unconstrained minimization)

Output Parameter

outsnes -the new SNES context

Options Database Keys

-snes_mf - Activates default matrix-free Jacobian-vector products, and no preconditioning matrix
-snes_mf_operator - Activates default matrix-free Jacobian-vector products, and a user-provided preconditioning matrix as set by SNESSetJacobian()
-snes_fd - Uses (slow!) finite differences to compute Jacobian

Keywords

SNES, nonlinear, create, context

See Also

SNESSolve(), SNESDestroy()

Examples

src/snes/examples/tutorials/ex1f.F
src/snes/examples/tutorials/ex4f.F
src/snes/examples/tutorials/ex5f.F
src/snes/examples/tutorials/ex5f90.F
src/snes/examples/tutorials/ex4.c
src/snes/examples/tutorials/ex1.c
src/snes/examples/tutorials/ex2.c
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex6.c
src/snes/examples/tutorials/ex5s.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c

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