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

KSPReset

Resets a KSP context to the kspsetupcalled = 0 state and removes any allocated Vecs and Mats

Synopsis

#include "petscksp.h" 
#include "petscmat.h" 
PetscErrorCode  KSPReset(KSP ksp)
Collective on ksp

Input Parameter

ksp - iterative context obtained from KSPCreate()

See Also

KSPCreate(), KSPSetUp(), KSPSolve(), KSP

Level

beginner

Location

src/ksp/ksp/interface/itfunc.c

Examples

src/ksp/ksp/tutorials/ex75.c.html
src/ksp/ksp/tutorials/ex75f.F90.html

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