Actual source code: pcregis.c

petsc-master 2020-08-15
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);
 35: PETSC_EXTERN PetscErrorCode PCCreate_HMG(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);
 60: PETSC_EXTERN PetscErrorCode PCCreate_Deflation(PC);
 61: #if defined(PETSC_HAVE_HPDDM)
 62: PETSC_EXTERN PetscErrorCode PCCreate_HPDDM(PC);
 63: #endif
 64: #if defined(PETSC_HAVE_HARA)
 65: PETSC_EXTERN PetscErrorCode PCCreate_HARA(PC);
 66: #endif

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

 71:    Not Collective

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

 76:    Level: advanced

 78: .seealso: PCRegister()
 79: @*/
 80: PetscErrorCode  PCRegisterAll(void)
 81: {

 85:   if (PCRegisterAllCalled) return(0);
 86:   PCRegisterAllCalled = PETSC_TRUE;

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