KSPGMRESSetRestart

Sets the number of search directions for GMRES and FGMRES before restart.

Synopsis

int KSPGMRESSetRestart(KSP ksp,int max_k)
Collective on KSP

Input Parameters

ksp - the iterative context
max_k - the number of directions

Options Database Key

-ksp_gmres_restart <max_k> -Sets max_k

Note

The default value of max_k = 30.

Keywords

KSP, GMRES, set, restart

See Also

KSPGMRESSetOrthogonalization(), KSPGMRESSetPreallocateVectors()

Level:intermediate
Location:
src/sles/ksp/impls/gmres/gmres2.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages