PCSetReusePreconditioner#

reuse the current preconditioner even if the operator in the preconditioner has changed.

Synopsis#

#include "petscksp.h" 
PetscErrorCode PCSetReusePreconditioner(PC pc, PetscBool flag)

Logically Collective

Input Parameters#

  • pc - the preconditioner context

  • flag - PETSC_TRUE do not compute a new preconditioner, PETSC_FALSE do compute a new preconditioner

Note#

Normally if a matrix inside a PC changes the PC automatically updates itself using information from the changed matrix. This option prevents this.

See Also#

PC, PCGetOperators(), MatZeroEntries(), PCGetReusePreconditioner(), KSPSetReusePreconditioner()

Level#

intermediate

Location#

src/ksp/pc/interface/precon.c


Edit on GitLab

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