Actual source code: itregis.c
petsc-3.10.5 2019-03-28
Report Typos and Errors

      2:  #include <petsc/private/kspimpl.h>

      4: PETSC_EXTERN PetscErrorCode KSPCreate_Richardson(KSP);
      5: PETSC_EXTERN PetscErrorCode KSPCreate_Chebyshev(KSP);
      6: PETSC_EXTERN PetscErrorCode KSPCreate_CG(KSP);
      7: PETSC_EXTERN PetscErrorCode KSPCreate_GROPPCG(KSP);
      8: PETSC_EXTERN PetscErrorCode KSPCreate_PIPECG(KSP);
      9: PETSC_EXTERN PetscErrorCode KSPCreate_PIPECGRR(KSP);
     10: PETSC_EXTERN PetscErrorCode KSPCreate_PIPELCG(KSP);
     11: PETSC_EXTERN PetscErrorCode KSPCreate_CGNE(KSP);
     12: PETSC_EXTERN PetscErrorCode KSPCreate_CGNASH(KSP);
     13: PETSC_EXTERN PetscErrorCode KSPCreate_CGSTCG(KSP);
     14: PETSC_EXTERN PetscErrorCode KSPCreate_CGGLTR(KSP);
     15: PETSC_EXTERN PetscErrorCode KSPCreate_TCQMR(KSP);
     16: PETSC_EXTERN PetscErrorCode KSPCreate_FCG(KSP);
     17: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEFCG(KSP);
     18: PETSC_EXTERN PetscErrorCode KSPCreate_GMRES(KSP);
     19: PETSC_EXTERN PetscErrorCode KSPCreate_BCGS(KSP);
     20: PETSC_EXTERN PetscErrorCode KSPCreate_IBCGS(KSP);
     21: PETSC_EXTERN PetscErrorCode KSPCreate_FBCGS(KSP);
     22: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEBCGS(KSP);
     23: PETSC_EXTERN PetscErrorCode KSPCreate_FBCGSR(KSP);
     24: PETSC_EXTERN PetscErrorCode KSPCreate_BCGSL(KSP);
     25: PETSC_EXTERN PetscErrorCode KSPCreate_CGS(KSP);
     26: PETSC_EXTERN PetscErrorCode KSPCreate_TFQMR(KSP);
     27: PETSC_EXTERN PetscErrorCode KSPCreate_LSQR(KSP);
     28: PETSC_EXTERN PetscErrorCode KSPCreate_PREONLY(KSP);
     29: PETSC_EXTERN PetscErrorCode KSPCreate_CR(KSP);
     30: PETSC_EXTERN PetscErrorCode KSPCreate_PIPECR(KSP);
     31: PETSC_EXTERN PetscErrorCode KSPCreate_QCG(KSP);
     32: PETSC_EXTERN PetscErrorCode KSPCreate_BiCG(KSP);
     33: PETSC_EXTERN PetscErrorCode KSPCreate_FGMRES(KSP);
     34: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEFGMRES(KSP);
     35: PETSC_EXTERN PetscErrorCode KSPCreate_MINRES(KSP);
     36: PETSC_EXTERN PetscErrorCode KSPCreate_SYMMLQ(KSP);
     37: PETSC_EXTERN PetscErrorCode KSPCreate_LGMRES(KSP);
     38: PETSC_EXTERN PetscErrorCode KSPCreate_LCD(KSP);
     39: PETSC_EXTERN PetscErrorCode KSPCreate_GCR(KSP);
     40: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEGCR(KSP);
     41: PETSC_EXTERN PetscErrorCode KSPCreate_PGMRES(KSP);
     42: #if !defined(PETSC_USE_COMPLEX)
     43: PETSC_EXTERN PetscErrorCode KSPCreate_DGMRES(KSP);
     44: #endif
     45: PETSC_EXTERN PetscErrorCode KSPCreate_TSIRM(KSP);
     46: PETSC_EXTERN PetscErrorCode KSPCreate_CGLS(KSP);
     47: PETSC_EXTERN PetscErrorCode KSPCreate_FETIDP(KSP);

     49: /*@C
     50:   KSPRegisterAll - Registers all of the Krylov subspace methods in the KSP package.

     52:   Not Collective

     54:   Level: advanced

     56: .keywords: KSP, register, all

     58: .seealso:  KSPRegisterDestroy()
     59: @*/
     60: PetscErrorCode  KSPRegisterAll(void)
     61: {

     65:   if (KSPRegisterAllCalled) return(0);
     66:   KSPRegisterAllCalled = PETSC_TRUE;

     68:   KSPRegister(KSPCG,          KSPCreate_CG);
     69:   KSPRegister(KSPGROPPCG,     KSPCreate_GROPPCG);
     70:   KSPRegister(KSPPIPECG,      KSPCreate_PIPECG);
     71:   KSPRegister(KSPPIPECGRR,    KSPCreate_PIPECGRR);
     72:   KSPRegister(KSPPIPELCG,     KSPCreate_PIPELCG);
     73:   KSPRegister(KSPCGNE,        KSPCreate_CGNE);
     74:   KSPRegister(KSPCGNASH,      KSPCreate_CGNASH);
     75:   KSPRegister(KSPCGSTCG,      KSPCreate_CGSTCG);
     76:   KSPRegister(KSPCGGLTR,      KSPCreate_CGGLTR);
     77:   KSPRegister(KSPRICHARDSON,  KSPCreate_Richardson);
     78:   KSPRegister(KSPCHEBYSHEV,   KSPCreate_Chebyshev);
     79:   KSPRegister(KSPGMRES,       KSPCreate_GMRES);
     80:   KSPRegister(KSPTCQMR,       KSPCreate_TCQMR);
     81:   KSPRegister(KSPFCG  ,       KSPCreate_FCG);
     82:   KSPRegister(KSPPIPEFCG,     KSPCreate_PIPEFCG);
     83:   KSPRegister(KSPBCGS,        KSPCreate_BCGS);
     84:   KSPRegister(KSPIBCGS,       KSPCreate_IBCGS);
     85:   KSPRegister(KSPFBCGS,       KSPCreate_FBCGS);
     86:   KSPRegister(KSPPIPEBCGS,    KSPCreate_PIPEBCGS);
     87:   KSPRegister(KSPFBCGSR,      KSPCreate_FBCGSR);
     88:   KSPRegister(KSPBCGSL,       KSPCreate_BCGSL);
     89:   KSPRegister(KSPCGS,         KSPCreate_CGS);
     90:   KSPRegister(KSPTFQMR,       KSPCreate_TFQMR);
     91:   KSPRegister(KSPCR,          KSPCreate_CR);
     92:   KSPRegister(KSPPIPECR,      KSPCreate_PIPECR);
     93:   KSPRegister(KSPLSQR,        KSPCreate_LSQR);
     94:   KSPRegister(KSPPREONLY,     KSPCreate_PREONLY);
     95:   KSPRegister(KSPQCG,         KSPCreate_QCG);
     96:   KSPRegister(KSPBICG,        KSPCreate_BiCG);
     97:   KSPRegister(KSPFGMRES,      KSPCreate_FGMRES);
     98:   KSPRegister(KSPPIPEFGMRES,  KSPCreate_PIPEFGMRES);
     99:   KSPRegister(KSPMINRES,      KSPCreate_MINRES);
    100:   KSPRegister(KSPSYMMLQ,      KSPCreate_SYMMLQ);
    101:   KSPRegister(KSPLGMRES,      KSPCreate_LGMRES);
    102:   KSPRegister(KSPLCD,         KSPCreate_LCD);
    103:   KSPRegister(KSPGCR,         KSPCreate_GCR);
    104:   KSPRegister(KSPPIPEGCR,     KSPCreate_PIPEGCR);
    105:   KSPRegister(KSPPGMRES,      KSPCreate_PGMRES);
    106: #if !defined(PETSC_USE_COMPLEX)
    107:   KSPRegister(KSPDGMRES,      KSPCreate_DGMRES);
    108: #endif
    109:   KSPRegister(KSPTSIRM,       KSPCreate_TSIRM);
    110:   KSPRegister(KSPCGLS,        KSPCreate_CGLS);
    111:   KSPRegister(KSPFETIDP,      KSPCreate_FETIDP);
    112:   return(0);
    113: }