Actual source code: itregis.c
1: /*
2: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3: SLEPc - Scalable Library for Eigenvalue Problem Computations
4: Copyright (c) 2002-2009, Universidad Politecnica de Valencia, Spain
6: This file is part of SLEPc.
7:
8: SLEPc is free software: you can redistribute it and/or modify it under the
9: terms of version 3 of the GNU Lesser General Public License as published by
10: the Free Software Foundation.
12: SLEPc is distributed in the hope that it will be useful, but WITHOUT ANY
13: WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14: FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15: more details.
17: You should have received a copy of the GNU Lesser General Public License
18: along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
19: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20: */
22: #include private/epsimpl.h
25: EXTERN PetscErrorCode EPSCreate_POWER(EPS);
26: EXTERN PetscErrorCode EPSCreate_SUBSPACE(EPS);
27: EXTERN PetscErrorCode EPSCreate_ARNOLDI(EPS);
28: EXTERN PetscErrorCode EPSCreate_LANCZOS(EPS);
29: EXTERN PetscErrorCode EPSCreate_KRYLOVSCHUR(EPS);
30: #if defined(SLEPC_HAVE_ARPACK)
31: EXTERN PetscErrorCode EPSCreate_ARPACK(EPS);
32: #endif
33: EXTERN PetscErrorCode EPSCreate_LAPACK(EPS);
34: #if defined(SLEPC_HAVE_BLZPACK) && !defined(PETSC_USE_COMPLEX)
35: EXTERN PetscErrorCode EPSCreate_BLZPACK(EPS);
36: #endif
37: #if defined(SLEPC_HAVE_TRLAN) && !defined(PETSC_USE_COMPLEX)
38: EXTERN PetscErrorCode EPSCreate_TRLAN(EPS);
39: #endif
40: #if defined(PETSC_HAVE_BLOPEX) && !defined(PETSC_USE_COMPLEX)
41: EXTERN PetscErrorCode EPSCreate_BLOPEX(EPS);
42: #endif
43: #if defined(SLEPC_HAVE_PRIMME)
44: EXTERN PetscErrorCode EPSCreate_PRIMME(EPS eps);
45: #endif
47:
50: /*@C
51: EPSRegisterAll - Registers all the eigenvalue solvers in the EPS package.
53: Not Collective
55: Level: advanced
57: .seealso: EPSRegisterDynamic()
58: @*/
59: PetscErrorCode EPSRegisterAll(char *path)
60: {
65: EPSRegisterDynamic(EPSPOWER, path,"EPSCreate_POWER",
66: EPSCreate_POWER);
67: EPSRegisterDynamic(EPSSUBSPACE, path,"EPSCreate_SUBSPACE",
68: EPSCreate_SUBSPACE);
69: EPSRegisterDynamic(EPSARNOLDI, path,"EPSCreate_ARNOLDI",
70: EPSCreate_ARNOLDI);
71: EPSRegisterDynamic(EPSLANCZOS, path,"EPSCreate_LANCZOS",
72: EPSCreate_LANCZOS);
73: EPSRegisterDynamic(EPSKRYLOVSCHUR, path,"EPSCreate_KRYLOVSCHUR",
74: EPSCreate_KRYLOVSCHUR);
75: #if defined(SLEPC_HAVE_ARPACK)
76: EPSRegisterDynamic(EPSARPACK, path,"EPSCreate_ARPACK",
77: EPSCreate_ARPACK);
78: #endif
79: EPSRegisterDynamic(EPSLAPACK, path,"EPSCreate_LAPACK",
80: EPSCreate_LAPACK);
81: #if defined(SLEPC_HAVE_BLZPACK) && !defined(PETSC_USE_COMPLEX)
82: EPSRegisterDynamic(EPSBLZPACK, path,"EPSCreate_BLZPACK",
83: EPSCreate_BLZPACK);
84: #endif
85: #if defined(SLEPC_HAVE_TRLAN) && !defined(PETSC_USE_COMPLEX)
86: EPSRegisterDynamic(EPSTRLAN, path,"EPSCreate_TRLAN",
87: EPSCreate_TRLAN);
88: #endif
89: #if defined(PETSC_HAVE_BLOPEX) && !defined(PETSC_USE_COMPLEX)
90: EPSRegisterDynamic(EPSBLOPEX, path,"EPSCreate_BLOPEX",
91: EPSCreate_BLOPEX);
92: #endif
93: #if defined(SLEPC_HAVE_PRIMME)
94: EPSRegisterDynamic(EPSPRIMME, path, "EPSCreate_PRIMME",
95: EPSCreate_PRIMME);
96: #endif
97: return(0);
98: }