Actual source code: itregis.c

petsc-3.8.3 2017-12-09
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_CGNE(KSP);
 11: PETSC_EXTERN PetscErrorCode KSPCreate_CGNASH(KSP);
 12: PETSC_EXTERN PetscErrorCode KSPCreate_CGSTCG(KSP);
 13: PETSC_EXTERN PetscErrorCode KSPCreate_CGGLTR(KSP);
 14: PETSC_EXTERN PetscErrorCode KSPCreate_TCQMR(KSP);
 15: PETSC_EXTERN PetscErrorCode KSPCreate_FCG(KSP);
 16: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEFCG(KSP);
 17: PETSC_EXTERN PetscErrorCode KSPCreate_GMRES(KSP);
 18: PETSC_EXTERN PetscErrorCode KSPCreate_BCGS(KSP);
 19: PETSC_EXTERN PetscErrorCode KSPCreate_IBCGS(KSP);
 20: PETSC_EXTERN PetscErrorCode KSPCreate_FBCGS(KSP);
 21: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEBCGS(KSP);
 22: PETSC_EXTERN PetscErrorCode KSPCreate_FBCGSR(KSP);
 23: PETSC_EXTERN PetscErrorCode KSPCreate_BCGSL(KSP);
 24: PETSC_EXTERN PetscErrorCode KSPCreate_CGS(KSP);
 25: PETSC_EXTERN PetscErrorCode KSPCreate_TFQMR(KSP);
 26: PETSC_EXTERN PetscErrorCode KSPCreate_LSQR(KSP);
 27: PETSC_EXTERN PetscErrorCode KSPCreate_PREONLY(KSP);
 28: PETSC_EXTERN PetscErrorCode KSPCreate_CR(KSP);
 29: PETSC_EXTERN PetscErrorCode KSPCreate_PIPECR(KSP);
 30: PETSC_EXTERN PetscErrorCode KSPCreate_QCG(KSP);
 31: PETSC_EXTERN PetscErrorCode KSPCreate_BiCG(KSP);
 32: PETSC_EXTERN PetscErrorCode KSPCreate_FGMRES(KSP);
 33: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEFGMRES(KSP);
 34: PETSC_EXTERN PetscErrorCode KSPCreate_MINRES(KSP);
 35: PETSC_EXTERN PetscErrorCode KSPCreate_SYMMLQ(KSP);
 36: PETSC_EXTERN PetscErrorCode KSPCreate_LGMRES(KSP);
 37: PETSC_EXTERN PetscErrorCode KSPCreate_LCD(KSP);
 38: PETSC_EXTERN PetscErrorCode KSPCreate_GCR(KSP);
 39: PETSC_EXTERN PetscErrorCode KSPCreate_PIPEGCR(KSP);
 40: PETSC_EXTERN PetscErrorCode KSPCreate_PGMRES(KSP);
 41: #if !defined(PETSC_USE_COMPLEX)
 42: PETSC_EXTERN PetscErrorCode KSPCreate_DGMRES(KSP);
 43: #endif
 44: PETSC_EXTERN PetscErrorCode KSPCreate_TSIRM(KSP);
 45: PETSC_EXTERN PetscErrorCode KSPCreate_CGLS(KSP);
 46: PETSC_EXTERN PetscErrorCode KSPCreate_FETIDP(KSP);

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

 51:   Not Collective

 53:   Level: advanced

 55: .keywords: KSP, register, all

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

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

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