KSPEKSMGetShift#

Gets the value of the shift \(\varsigma\) used for the internal linear solves.

Synopsis#

#include "petscksp.h" 
PetscErrorCode KSPEKSMGetShift(KSP ksp, PetscScalar *shift)

Not Collective

Input Parameter#

  • ksp - the Krylov space solver context

Output Parameter#

  • shift - the value of the shift, \(\varsigma\)

Note#

The returned value is the one set with KSPEKSMSetShift(). If that routine was not called, the shift is computed internally during KSPSetUp() as the centroid of the shifts passed to MatCreateNestFromMultipleShifts(), so this routine returns 0 when called before the solver has been set up.

See Also#

KSP: Linear System Solvers, KSPEKSM, KSPEKSMSetShift()

Level#

intermediate

Location#

src/ksp/ksp/impls/eksm/eksm.c

Implementations#

KSPEKSMGetShift_EKSM() in src/ksp/ksp/impls/eksm/eksm.c


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