KSPFlexibleModifyPCFn#

A prototype of a function used to modify the preconditioner during the use of flexible KSP methods, such as KSPFGMRES

Synopsis#

PETSC_EXTERN_TYPEDEF typedef PetscErrorCode KSPFlexibleModifyPCFn(KSP ksp, PetscInt total_its, PetscInt local_its, PetscReal res_norm, PetscCtx ctx);

Calling Sequence#

  • ksp - the KSP context being used.

  • total_its - the total number of iterations that have occurred.

  • local_its - the number of iterations since last restart if applicable

  • res_norm - the current residual norm

  • ctx - optional context variable set with KSPFlexibleSetModifyPC()

See Also#

KSP: Linear System Solvers, KSP, KSPFlexibleSetModifyPC()

Level#

beginner

Location#

include/petscksp.h


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