Actual source code: pcregis.c

petsc-3.11.1 2019-04-17
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_VPBJacobi(PC);
  8: PETSC_EXTERN PetscErrorCode PCCreate_ILU(PC);
  9: PETSC_EXTERN PetscErrorCode PCCreate_None(PC);
 10: PETSC_EXTERN PetscErrorCode PCCreate_LU(PC);
 11: PETSC_EXTERN PetscErrorCode PCCreate_SOR(PC);
 12: PETSC_EXTERN PetscErrorCode PCCreate_Shell(PC);
 13: PETSC_EXTERN PetscErrorCode PCCreate_MG(PC);
 14: PETSC_EXTERN PetscErrorCode PCCreate_Eisenstat(PC);
 15: PETSC_EXTERN PetscErrorCode PCCreate_ICC(PC);
 16: PETSC_EXTERN PetscErrorCode PCCreate_ASM(PC);
 17: PETSC_EXTERN PetscErrorCode PCCreate_GASM(PC);
 18: PETSC_EXTERN PetscErrorCode PCCreate_KSP(PC);
 19: PETSC_EXTERN PetscErrorCode PCCreate_Composite(PC);
 20: PETSC_EXTERN PetscErrorCode PCCreate_Redundant(PC);
 21: PETSC_EXTERN PetscErrorCode PCCreate_NN(PC);
 22: PETSC_EXTERN PetscErrorCode PCCreate_Cholesky(PC);
 23: PETSC_EXTERN PetscErrorCode PCCreate_FieldSplit(PC);
 24: PETSC_EXTERN PetscErrorCode PCCreate_Galerkin(PC);
 25: PETSC_EXTERN PetscErrorCode PCCreate_Exotic(PC);
 26: PETSC_EXTERN PetscErrorCode PCCreate_CP(PC);
 27: PETSC_EXTERN PetscErrorCode PCCreate_LSC(PC);
 28: PETSC_EXTERN PetscErrorCode PCCreate_Redistribute(PC);
 29: PETSC_EXTERN PetscErrorCode PCCreate_SVD(PC);
 30: PETSC_EXTERN PetscErrorCode PCCreate_GAMG(PC);
 31: PETSC_EXTERN PetscErrorCode PCCreate_Kaczmarz(PC);
 32: PETSC_EXTERN PetscErrorCode PCCreate_Telescope(PC);
 33: PETSC_EXTERN PetscErrorCode PCCreate_Patch(PC);
 34: PETSC_EXTERN PetscErrorCode PCCreate_LMVM(PC);

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

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

 64:    Not Collective

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

 69:    Level: advanced

 71: .keywords: PC, register, all

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

 80:   if (PCRegisterAllCalled) return(0);
 81:   PCRegisterAllCalled = PETSC_TRUE;

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