Actual source code: pcregis.c
petsc-3.7.3 2016-08-01
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);
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_PARMS)
55: PETSC_EXTERN PetscErrorCode PCCreate_PARMS(PC);
56: #endif
57: 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(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: PCRegister(PCTELESCOPE,PCCreate_Telescope);
112: #if defined(PETSC_HAVE_ML)
113: PCRegister(PCML ,PCCreate_ML);
114: #endif
115: #if defined(PETSC_HAVE_SPAI)
116: PCRegister(PCSPAI ,PCCreate_SPAI);
117: #endif
118: #if defined(PETSC_HAVE_HYPRE)
119: PCRegister(PCHYPRE ,PCCreate_HYPRE);
120: PCRegister(PCPFMG ,PCCreate_PFMG);
121: PCRegister(PCSYSPFMG ,PCCreate_SysPFMG);
122: #endif
123: #if !defined(PETSC_USE_COMPLEX)
124: PCRegister(PCTFS ,PCCreate_TFS);
125: #endif
126: #if defined(PETSC_HAVE_CUSP)
127: PCRegister(PCSACUSP ,PCCreate_SACUSP);
128: PCRegister(PCAINVCUSP ,PCCreate_AINVCUSP);
129: PCRegister(PCBICGSTABCUSP ,PCCreate_BiCGStabCUSP);
130: PCRegister(PCSACUSPPOLY ,PCCreate_SACUSPPoly);
131: #endif
132: #if defined(PETSC_HAVE_PARMS)
133: PCRegister(PCPARMS ,PCCreate_PARMS);
134: #endif
135: PCRegister(PCBDDC ,PCCreate_BDDC);
136: return(0);
137: }