1: /*
2: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3: SLEPc - Scalable Library for Eigenvalue Problem Computations
4: Copyright (c) 2002-2015, Universitat Politecnica de Valencia, Spain
6: This file is part of SLEPc.
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 <slepcst.h>
23: #include <slepcds.h>
24: #include <slepcfn.h>
25: #include <slepcbv.h>
26: #include <slepcrg.h>
28: #if defined(PETSC_HAVE_DYNAMIC_LIBRARIES)
30: #if defined(PETSC_USE_SINGLE_LIBRARY)
31: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepceps(void);
32: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcnep(void);
33: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcpep(void);
34: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcsvd(void);
35: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcmfn(void);
36: #endif
39: #if defined(PETSC_USE_SINGLE_LIBRARY)
41: #else
43: #endif
44: /*
45: PetscDLLibraryRegister - This function is called when the dynamic library
46: it is in is opened.
48: This one registers all the basic objects ST, FN, DS, BV, RG.
49: */
50: #if defined(PETSC_USE_SINGLE_LIBRARY)
51: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepc(void) 52: #else
53: PETSC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcsys(void) 54: #endif
55: {
59: STInitializePackage();
60: DSInitializePackage();
61: FNInitializePackage();
62: BVInitializePackage();
63: RGInitializePackage();
65: #if defined(PETSC_USE_SINGLE_LIBRARY)
66: PetscDLLibraryRegister_slepceps();
67: PetscDLLibraryRegister_slepcnep();
68: PetscDLLibraryRegister_slepcpep();
69: PetscDLLibraryRegister_slepcsvd();
70: PetscDLLibraryRegister_slepcmfn();
71: #endif
72: return(0);
73: }
74: #endif /* PETSC_HAVE_DYNAMIC_LIBRARIES */