Actual source code: pcregis.c

petsc-master 2017-09-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_CUSP)
 49: PETSC_EXTERN PetscErrorCode PCCreate_SACUSP(PC);
 50: PETSC_EXTERN PetscErrorCode PCCreate_SACUSPPoly(PC);
 51: PETSC_EXTERN PetscErrorCode PCCreate_BiCGStabCUSP(PC);
 52: PETSC_EXTERN PetscErrorCode PCCreate_AINVCUSP(PC);
 53: #endif
 54: #if defined(PETSC_HAVE_VIENNACL)
 55: PETSC_EXTERN PetscErrorCode PCCreate_CHOWILUVIENNACL(PC);
 56: PETSC_EXTERN PetscErrorCode PCCreate_ROWSCALINGVIENNACL(PC);
 57: PETSC_EXTERN PetscErrorCode PCCreate_SAVIENNACL(PC);
 58: #endif
 59: #if defined(PETSC_HAVE_PARMS)
 60: PETSC_EXTERN PetscErrorCode PCCreate_PARMS(PC);
 61: #endif
 62: PETSC_EXTERN PetscErrorCode PCCreate_BDDC(PC);

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

 67:    Not Collective

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

 72:    Level: advanced

 74: .keywords: PC, register, all

 76: .seealso: PCRegister(), PCRegisterDestroy()
 77: @*/
 78: PetscErrorCode  PCRegisterAll(void)
 79: {

 83:   if (PCRegisterAllCalled) return(0);
 84:   PCRegisterAllCalled = PETSC_TRUE;

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