Actual source code: pcregis.c

petsc-3.5.4 2015-05-23
Report Typos and Errors
  2: #include <petsc-private/pcimpl.h>          /*I   "petscpc.h"   I*/

  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);

 32: #if defined(PETSC_HAVE_ML)
 33: PETSC_EXTERN PetscErrorCode PCCreate_ML(PC);
 34: #endif
 35: #if defined(PETSC_HAVE_SPAI)
 36: PETSC_EXTERN PetscErrorCode PCCreate_SPAI(PC);
 37: #endif
 38: PETSC_EXTERN PetscErrorCode PCCreate_Mat(PC);
 39: #if defined(PETSC_HAVE_HYPRE)
 40: PETSC_EXTERN PetscErrorCode PCCreate_HYPRE(PC);
 41: PETSC_EXTERN PetscErrorCode PCCreate_PFMG(PC);
 42: PETSC_EXTERN PetscErrorCode PCCreate_SysPFMG(PC);
 43: #endif
 44: #if !defined(PETSC_USE_COMPLEX)
 45: PETSC_EXTERN PetscErrorCode PCCreate_TFS(PC);
 46: #endif
 47: #if defined(PETSC_HAVE_CUSP_SMOOTHED_AGGREGATION) && defined(PETSC_HAVE_CUSP)
 48: PETSC_EXTERN PetscErrorCode PCCreate_SACUSP(PC);
 49: PETSC_EXTERN PetscErrorCode PCCreate_SACUSPPoly(PC);
 50: PETSC_EXTERN PetscErrorCode PCCreate_BiCGStabCUSP(PC);
 51: PETSC_EXTERN PetscErrorCode PCCreate_AINVCUSP(PC);
 52: #endif
 53: #if defined(PETSC_HAVE_PARMS)
 54: PETSC_EXTERN PetscErrorCode PCCreate_PARMS(PC);
 55: #endif
 56: #if defined(PETSC_HAVE_PCBDDC)
 57: PETSC_EXTERN PetscErrorCode PCCreate_BDDC(PC);
 58: #endif

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

 65:    Not Collective

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

 70:    Level: advanced

 72: .keywords: PC, register, all

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

 81:   PCRegisterAllCalled = PETSC_TRUE;

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