SNESDestroy#

Destroys the nonlinear solver context that was created with SNESCreate().

Synopsis#

#include "petscsnes.h"  
PetscErrorCode SNESDestroy(SNES *snes)

Collective

Input Parameter#

  • snes - the SNES context

See Also#

SNES: Nonlinear Solvers, SNES, SNESCreate(), SNESSolve()

Level#

beginner

Location#

src/snes/interface/snes.c

Examples#

src/tao/tutorials/ex2.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex48.c
src/snes/tutorials/ex24.c
src/snes/tutorials/ex77.c
src/snes/tutorials/ex35.c
src/snes/tutorials/ex55.c
src/snes/tutorials/ex26.c
src/tao/tutorials/ex1.c
src/ts/tutorials/ex30.c

Implementations#

SNESDestroy_NEWTONAL() in src/snes/impls/al/al.c
SNESDestroy_Composite() in src/snes/impls/composite/snescomposite.c
SNESDestroy_FAS() in src/snes/impls/fas/fas.c
SNESDestroy_NGS() in src/snes/impls/gs/snesgs.c
SNESDestroy_KSPONLY() in src/snes/impls/ksponly/ksponly.c
SNESDestroy_NEWTONLS() in src/snes/impls/ls/ls.c
SNESDestroy_MS() in src/snes/impls/ms/ms.c
SNESDestroy_Multiblock() in src/snes/impls/multiblock/multiblock.c
SNESDestroy_ASPIN() in src/snes/impls/nasm/aspin.c
SNESDestroy_NASM() in src/snes/impls/nasm/nasm.c
SNESDestroy_NCG() in src/snes/impls/ncg/snesncg.c
SNESDestroy_NGMRES() in src/snes/impls/ngmres/snesngmres.c
SNESDestroy_NEWTONTRDC() in src/snes/impls/ntrdc/ntrdc.c
SNESDestroy_Patch() in src/snes/impls/patch/snespatch.c
SNESDestroy_QN() in src/snes/impls/qn/qn.c
SNESDestroy_NRichardson() in src/snes/impls/richardson/snesrichardson.c
SNESDestroy_Shell() in src/snes/impls/shell/snesshell.c
SNESDestroy_NEWTONTR() in src/snes/impls/tr/tr.c
SNESDestroy_VI() in src/snes/impls/vi/vi.c


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