petsc-3.3-p7 2013-05-11

SNESReset

Resets a SNES context to the snessetupcalled = 0 state and removes any allocated Vecs and Mats

Synopsis

#include "petscsnes.h"  
#include "petscdmshell.h" 
#include "petscsys.h" 
PetscErrorCode  SNESReset(SNES snes)
Collective on SNES

Input Parameter

snes -iterative context obtained from SNESCreate()

Notes: Also calls the application context destroy routine set with SNESSetComputeApplicationContext()

Keywords

SNES, destroy

See Also

SNESCreate(), SNESSetUp(), SNESSolve()

Level:intermediate
Location:
src/snes/interface/snes.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages