KSPSetReusePreconditioner

reuse the current preconditioner, do not construct a new one even if the operator changes

Synopsis

#include "petscksp.h" 
#include "petscmat.h" 
PetscErrorCode  KSPSetReusePreconditioner(KSP ksp,PetscBool flag)
Collective on ksp

Input Parameters

ksp - iterative context obtained from KSPCreate()
flag - PETSC_TRUE to reuse the current preconditioner

Level: intermediate

See Also

KSPCreate(), KSPSolve(), KSPDestroy(), PCSetReusePreconditioner(), KSP

Location:itfunc.c