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, SNESCreate(), SNESSolve()

Level#

beginner

Location#

src/snes/interface/snes.c

Examples#

src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex13.c.html
src/snes/tutorials/ex14.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex16.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex18.c.html
src/snes/tutorials/ex19.c.html
src/snes/tutorials/ex1.c.html
src/snes/tutorials/ex1f.F90.html
src/snes/tutorials/ex20.c.html

Implementations#

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


Edit on GitLab

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