Skip to main content
Ctrl+K
PETSc v3.24.5-547-g02fac8099134 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • KSPFlexibleS...

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, PetscCtx ctx, PetscCtxDestroyFn *destroy)

Logically Collective

Input Parameters#

  • ksp - iterative context obtained from KSPCreate()

  • fcn - function to modify the PC, see KSPFlexibleModifyPCFn

  • ctx - optional context

  • destroy - optional context destroy routine

Note#

Several fcn routines are predefined, including KSPFlexibleModifyPCNoChange() and KSPFlexibleModifyPCKSP()

See Also#

KSP: Linear System Solvers, Flexible Krylov Methods, KSPFGMRES, KSPFCG, KSPPIPEFCG, KSPGCR, KSPPIPEGCR, KSPFlexibleModifyPCFn, KSPFlexibleModifyPCNoChange(), KSPFlexibleModifyPCKSP()

Level#

intermediate

Location#

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

Implementations#

KSPFlexibleSetModifyPC_GCR() in src/ksp/ksp/impls/gcr/gcr.c
KSPFlexibleSetModifyPC_PIPEGCR() in src/ksp/ksp/impls/gcr/pipegcr/pipegcr.c
KSPFlexibleSetModifyPC_FGMRES() in src/ksp/ksp/impls/gmres/fgmres/fgmres.c


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

On this page
  • Synopsis
  • Input Parameters
  • Note
  • See Also
  • Level
  • Location
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-03-11T03:46:58-0500 (v3.24.5-547-g02fac8099134).