Skip to main content
Ctrl+K
PETSc v3.25.5-747-gd7439c07f00d 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
  • KSPOrthogona...

KSPOrthogonalizationCGSRefinementType#

How the classical (unmodified) Gram-Schmidt is performed in the GMRES solvers

Synopsis#

typedef enum {
  KSP_ORTHOGONALIZATION_CGS_REFINE_NEVER    = 0,
  KSP_ORTHOGONALIZATION_CGS_REFINE_IFNEEDED = 1,
  KSP_ORTHOGONALIZATION_CGS_REFINE_ALWAYS   = 2,
  KSP_GMRES_CGS_REFINE_NEVER_DEPRECATED     = 0,
  KSP_GMRES_CGS_REFINE_IFNEEDED_DEPRECATED  = 1,
  KSP_GMRES_CGS_REFINE_ALWAYS_DEPRECATED    = 2
} KSPOrthogonalizationCGSRefinementType;

Values#

  • KSP_ORTHOGONALIZATION_CGS_REFINE_NEVER - one step of classical Gram-Schmidt

  • KSP_ORTHOGONALIZATION_CGS_REFINE_IFNEEDED - a second step is performed if the first step does not satisfy some criteria

  • KSP_ORTHOGONALIZATION_CGS_REFINE_ALWAYS - always perform two steps

See Also#

KSP: Linear System Solvers, KSP, KSPGMRES, KSPOrthogonalizationClassicalGramSchmidt(), KSPOrthogonalizationSet(), KSPOrthogonalizationGet(), KSPOrthogonalizationSetCGSRefinementType(), KSPOrthogonalizationGetCGSRefinementType(), KSPOrthogonalizationModifiedGramSchmidt()

Level#

advanced

Location#

include/petscksp.h


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

On this page
  • Synopsis
  • Values
  • See Also
  • Level
  • Location
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-09-08T04:01:12-0500 (v3.25.5-747-gd7439c07f00d).