Actual source code: pcregis.c

petsc-master 2018-06-24
Report Typos and Errors

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

  4: PETSC_EXTERN PetscErrorCode PCCreate_Jacobi(PC);
  5: PETSC_EXTERN PetscErrorCode PCCreate_BJacobi(PC);
  6: PETSC_EXTERN PetscErrorCode PCCreate_PBJacobi(PC);
  7: PETSC_EXTERN PetscErrorCode PCCreate_ILU(PC);
  8: PETSC_EXTERN PetscErrorCode PCCreate_None(PC);
  9: PETSC_EXTERN PetscErrorCode PCCreate_LU(PC);
 10: PETSC_EXTERN PetscErrorCode PCCreate_SOR(PC);
 11: PETSC_EXTERN PetscErrorCode PCCreate_Shell(PC);
 12: PETSC_EXTERN PetscErrorCode PCCreate_MG(PC);
 13: PETSC_EXTERN PetscErrorCode PCCreate_Eisenstat(PC);
 14: PETSC_EXTERN PetscErrorCode PCCreate_ICC(PC);
 15: PETSC_EXTERN PetscErrorCode PCCreate_ASM(PC);
 16: PETSC_EXTERN PetscErrorCode PCCreate_GASM(PC);
 17: PETSC_EXTERN PetscErrorCode PCCreate_KSP(PC);
 18: PETSC_EXTERN PetscErrorCode PCCreate_Composite(PC);
 19: PETSC_EXTERN PetscErrorCode PCCreate_Redundant(PC);
 20: PETSC_EXTERN PetscErrorCode PCCreate_NN(PC);
 21: PETSC_EXTERN PetscErrorCode PCCreate_Cholesky(PC);
 22: PETSC_EXTERN PetscErrorCode PCCreate_FieldSplit(PC);
 23: PETSC_EXTERN PetscErrorCode PCCreate_Galerkin(PC);
 24: PETSC_EXTERN PetscErrorCode PCCreate_Exotic(PC);
 25: PETSC_EXTERN PetscErrorCode PCCreate_CP(PC);
 26: PETSC_EXTERN PetscErrorCode PCCreate_LSC(PC);
 27: PETSC_EXTERN PetscErrorCode PCCreate_Redistribute(PC);
 28: PETSC_EXTERN PetscErrorCode PCCreate_SVD(PC);
 29: PETSC_EXTERN PetscErrorCode PCCreate_GAMG(PC);
 30: PETSC_EXTERN PetscErrorCode PCCreate_Kaczmarz(PC);
 31: PETSC_EXTERN PetscErrorCode PCCreate_Telescope(PC);

 33: #if defined(PETSC_HAVE_ML)
 34: PETSC_EXTERN PetscErrorCode PCCreate_ML(PC);
 35: #endif
 36: #if defined(PETSC_HAVE_SPAI)
 37: PETSC_EXTERN PetscErrorCode PCCreate_SPAI(PC);
 38: #endif
 39: PETSC_EXTERN PetscErrorCode PCCreate_Mat(PC);
 40: #if defined(PETSC_HAVE_HYPRE)
 41: PETSC_EXTERN PetscErrorCode PCCreate_HYPRE(PC);
 42: PETSC_EXTERN PetscErrorCode PCCreate_PFMG(PC);
 43: PETSC_EXTERN PetscErrorCode PCCreate_SysPFMG(PC);
 44: #endif
 45: #if !defined(PETSC_USE_COMPLEX)
 46: PETSC_EXTERN PetscErrorCode PCCreate_TFS(PC);
 47: #endif
 48: #if defined(PETSC_HAVE_VIENNACL)
 49: PETSC_EXTERN PetscErrorCode PCCreate_CHOWILUVIENNACL(PC);
 50: PETSC_EXTERN PetscErrorCode PCCreate_ROWSCALINGVIENNACL(PC);
 51: PETSC_EXTERN PetscErrorCode PCCreate_SAVIENNACL(PC);
 52: #endif
 53: #if defined(PETSC_HAVE_PARMS)
 54: PETSC_EXTERN PetscErrorCode PCCreate_PARMS(PC);
 55: #endif
 56: PETSC_EXTERN PetscErrorCode PCCreate_BDDC(PC);

 58: /*@C
 59:    PCRegisterAll - Registers all of the preconditioners in the PC package.

 61:    Not Collective

 63:    Input Parameter:
 64: .  path - the library where the routines are to be found (optional)

 66:    Level: advanced

 68: .keywords: PC, register, all

 70: .seealso: PCRegister(), PCRegisterDestroy()
 71: @*/
 72: PetscErrorCode  PCRegisterAll(void)
 73: {

 77:   if (PCRegisterAllCalled) return(0);
 78:   PCRegisterAllCalled = PETSC_TRUE;

 80:   PCRegister(PCNONE         ,PCCreate_None);
 81:   PCRegister(PCJACOBI       ,PCCreate_Jacobi);
 82:   PCRegister(PCPBJACOBI     ,PCCreate_PBJacobi);
 83:   PCRegister(PCBJACOBI      ,PCCreate_BJacobi);
 84:   PCRegister(PCSOR          ,PCCreate_SOR);
 85:   PCRegister(PCLU           ,PCCreate_LU);
 86:   PCRegister(PCSHELL        ,PCCreate_Shell);
 87:   PCRegister(PCMG           ,PCCreate_MG);
 88:   PCRegister(PCEISENSTAT    ,PCCreate_Eisenstat);
 89:   PCRegister(PCILU          ,PCCreate_ILU);
 90:   PCRegister(PCICC          ,PCCreate_ICC);
 91:   PCRegister(PCCHOLESKY     ,PCCreate_Cholesky);
 92:   PCRegister(PCASM          ,PCCreate_ASM);
 93:   PCRegister(PCGASM         ,PCCreate_GASM);
 94:   PCRegister(PCKSP          ,PCCreate_KSP);
 95:   PCRegister(PCCOMPOSITE    ,PCCreate_Composite);
 96:   PCRegister(PCREDUNDANT    ,PCCreate_Redundant);
 97:   PCRegister(PCNN           ,PCCreate_NN);
 98:   PCRegister(PCMAT          ,PCCreate_Mat);
 99:   PCRegister(PCFIELDSPLIT   ,PCCreate_FieldSplit);
100:   PCRegister(PCGALERKIN     ,PCCreate_Galerkin);
101:   PCRegister(PCEXOTIC       ,PCCreate_Exotic);
102:   PCRegister(PCCP           ,PCCreate_CP);
103:   PCRegister(PCLSC          ,PCCreate_LSC);
104:   PCRegister(PCREDISTRIBUTE ,PCCreate_Redistribute);
105:   PCRegister(PCSVD          ,PCCreate_SVD);
106:   PCRegister(PCGAMG         ,PCCreate_GAMG);
107:   PCRegister(PCKACZMARZ     ,PCCreate_Kaczmarz);
108:   PCRegister(PCTELESCOPE,PCCreate_Telescope);
109: #if defined(PETSC_HAVE_ML)
110:   PCRegister(PCML           ,PCCreate_ML);
111: #endif
112: #if defined(PETSC_HAVE_SPAI)
113:   PCRegister(PCSPAI         ,PCCreate_SPAI);
114: #endif
115: #if defined(PETSC_HAVE_HYPRE)
116:   PCRegister(PCHYPRE        ,PCCreate_HYPRE);
117:   PCRegister(PCPFMG         ,PCCreate_PFMG);
118:   PCRegister(PCSYSPFMG      ,PCCreate_SysPFMG);
119: #endif
120: #if !defined(PETSC_USE_COMPLEX)
121:   PCRegister(PCTFS          ,PCCreate_TFS);
122: #endif
123: #if defined(PETSC_HAVE_VIENNACL)
124:   PCRegister(PCCHOWILUVIENNACL,PCCreate_CHOWILUVIENNACL);
125:   PCRegister(PCROWSCALINGVIENNACL,PCCreate_ROWSCALINGVIENNACL);
126:   PCRegister(PCSAVIENNACL   ,PCCreate_SAVIENNACL);
127: #endif
128: #if defined(PETSC_HAVE_PARMS)
129:   PCRegister(PCPARMS        ,PCCreate_PARMS);
130: #endif
131:   PCRegister(PCBDDC         ,PCCreate_BDDC);
132:   return(0);
133: }