KSPIDRSetS#
Sets the shadow space dimension s for the KSPIDR solver.
Synopsis#
#include "petscksp.h"
PetscErrorCode KSPIDRSetS(KSP ksp, PetscInt s)
Logically Collective
Input Parameters#
ksp - the Krylov solver context
s - shadow space dimension (default 4); must be >= 1
Options Database Key#
-ksp_idr_s s - shadow space dimension
Notes#
Increasing s generally improves convergence but requires s additional
vectors. If s is changed after KSPSetUp() has been called, the solver
is reset automatically.
See Also#
KSP: Linear System Solvers, KSPIDR, KSPIDRGetS(), KSPIDRSetRandom()
Level#
intermediate
Location#
Implementations#
KSPIDRSetS_IDR() in src/ksp/ksp/impls/idr/idr.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages