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/snes/tutorials/ex46.c
src/snes/tutorials/ex33.c
src/snes/tutorials/ex31.c
src/snes/tutorials/ex21.c
src/snes/tutorials/ex14.c
src/snes/tutorials/ex18.c
src/snes/tutorials/ex15.c
src/snes/tutorials/ex22.c
src/snes/tutorials/ex78.c
src/snes/tutorials/ex11.c

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


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