# KSPType

String with the name of a PETSc Krylov method or the creation function with an optional dynamic library name, for example http://www.mcs.anl.gov/petsc/lib.a:mykspcreate()

### Synopsis

    #define KSPType const char*
    #define KSPRICHARDSON "richardson"
    #define KSPCHEBYCHEV  "chebychev"
    #define KSPCG         "cg"
    #define   KSPCGNE       "cgne"
    #define   KSPSTCG       "stcg"
    #define   KSPGLTR       "gltr"
    #define KSPGMRES      "gmres"
    #define   KSPFGMRES     "fgmres"
    #define   KSPLGMRES     "lgmres"
    #define KSPTCQMR      "tcqmr"
    #define KSPBCGS       "bcgs"
    #define KSPBCGSL      "bcgsl"
    #define KSPCGS        "cgs"
    #define KSPTFQMR      "tfqmr"
    #define KSPCR         "cr"
    #define KSPLSQR       "lsqr"
    #define KSPPREONLY    "preonly"
    #define KSPQCG        "qcg"
    #define KSPBICG       "bicg"
    #define KSPMINRES     "minres"
    #define KSPSYMMLQ     "symmlq"
    #define KSPLCD        "lcd"

    /* Logging support */
    extern PetscCookie PETSCKSP_DLLEXPORT KSP_COOKIE;

### See Also

KSPSetType(), KSP

Level:beginner
Location:src/ksp/ksp/../../../include/petscksp.h
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages