KSPFGMRESModifyPCKSP#

modifies the attributes of the KSPFGMRES preconditioner, see Flexible Krylov Methods.

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPFGMRESModifyPCKSP(KSP ksp, PetscInt total_its, PetscInt loc_its, PetscReal res_norm, void *ctx)

Input Parameters#

  • ksp - the ksp context being used.

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

  • loc_its - the number of KSPFGMRES iterations since last restart.

  • res_norm - the current residual norm.

  • ctx - context, not used here

Note#

You can use this as a template for writing a custom modification callback

See Also#

KSP: Linear System Solvers, Flexible Krylov Methods, KSPFGMRES, KSPFGMRESSetModifyPC()

Level#

intermediate

Location#

src/ksp/ksp/impls/gmres/fgmres/modpcf.c


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