petsc-3.15.0 2021-03-30
Report Typos and Errors

SNESReset

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

Synopsis

#include "petscsnes.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()

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