Actual source code: dlregisslepc.c
slepc-3.11.2 2019-07-30
1: /*
2: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3: SLEPc - Scalable Library for Eigenvalue Problem Computations
4: Copyright (c) 2002-2019, Universitat Politecnica de Valencia, Spain
6: This file is part of SLEPc.
7: SLEPc is distributed under a 2-clause BSD license (see LICENSE).
8: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9: */
11: #include <slepcst.h>
12: #include <slepcds.h>
13: #include <slepcfn.h>
14: #include <slepcbv.h>
15: #include <slepcrg.h>
17: #if defined(PETSC_HAVE_DYNAMIC_LIBRARIES)
19: #if defined(PETSC_USE_SINGLE_LIBRARY)
20: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepceps(void);
21: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcnep(void);
22: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcpep(void);
23: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcsvd(void);
24: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcmfn(void);
25: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepclme(void);
26: #endif
28: /*
29: PetscDLLibraryRegister - This function is called when the dynamic library
30: it is in is opened.
32: This one registers all the basic objects ST, FN, DS, BV, RG.
33: */
34: #if defined(PETSC_USE_SINGLE_LIBRARY)
35: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepc(void)
36: #else
37: SLEPC_EXTERN PetscErrorCode PetscDLLibraryRegister_slepcsys(void)
38: #endif
39: {
43: STInitializePackage();
44: DSInitializePackage();
45: FNInitializePackage();
46: BVInitializePackage();
47: RGInitializePackage();
49: #if defined(PETSC_USE_SINGLE_LIBRARY)
50: PetscDLLibraryRegister_slepceps();
51: PetscDLLibraryRegister_slepcnep();
52: PetscDLLibraryRegister_slepcpep();
53: PetscDLLibraryRegister_slepcsvd();
54: PetscDLLibraryRegister_slepcmfn();
55: PetscDLLibraryRegister_slepclme();
56: #endif
57: return(0);
58: }
59: #endif /* PETSC_HAVE_DYNAMIC_LIBRARIES */