KSPFlexibleSetModifyPC#
Sets the routine used by flexible KSP
methods to modify the preconditioner. Flexible Krylov Methods
Synopsis#
#include "petscksp.h"
PetscErrorCode KSPFlexibleSetModifyPC(KSP ksp, KSPFlexibleModifyPCFn *fcn, void *ctx, PetscCtxDestroyFn *destroy)
Logically Collective
Input Parameters#
ksp - iterative context obtained from
KSPCreate()
fcn - function to modify the
PC
, seeKSPFlexibleModifyPCFn
ctx - optional context
destroy - optional context destroy routine
Note#
Several fcn
routines are predefined, including KSPFGMRESModifyPCNoChange()
and KSPFGMRESModifyPCKSP()
See Also#
KSP: Linear System Solvers, Flexible Krylov Methods, KSPFGMRES
, KSPFGMRESModifyPCNoChange()
, KSPFGMRESModifyPCKSP()
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