Skip to main content
Ctrl+K
PETSc v3.26.0-166-g33866e03b893 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
  • KSPCGGetTRNormType

KSPCGGetTRNormType#

Gets the norm used for the trust-region constraint

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPCGGetTRNormType(KSP ksp, KSPCGTRNormType *normtype)

Not Collective

Input Parameter#

  • ksp - the iterative context

Output Parameter#

  • normtype - the trust-region norm type

See Also#

KSP: Linear System Solvers, KSP, KSPCGTRNormType, KSPCGSetTRNormType(), KSPCGSetRadius()

Level#

advanced

Location#

src/ksp/ksp/impls/cg/cgtype.c

Examples#

src/ksp/ksp/tests/ex94.c

Implementations#

KSPCGGetTRNormType_CG() in src/ksp/ksp/impls/cg/cg.c
KSPCGGetTRNormType_GLTR() in src/ksp/ksp/impls/cg/gltr/gltr.c
KSPCGGetTRNormType_NASH() in src/ksp/ksp/impls/cg/nash/nash.c


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

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
  • 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-10-19T03:43:11-0500 (v3.26.0-166-g33866e03b893).