Actual source code: dlregis.c
1: /*$Id: dlregis.c,v 1.20 2001/03/23 23:23:29 balay Exp $*/
3: #include "petscsles.h"
5: EXTERN_C_BEGIN
6: /*
7: PetscDLLibraryRegister - This function is called when the dynamic library it is in is opened.
9: This one registers all the KSP and PC methods that are in the basic PETSc libpetscsles
10: library.
12: Input Parameter:
13: path - library path
14: */
15: int PetscDLLibraryRegister(char *path)
16: {
19: PetscInitializeNoArguments(); if (ierr) return 1;
22: /*
23: If we got here then PETSc was properly loaded
24: */
25: KSPRegisterAll(path);
26: PCRegisterAll(path);
27: return(0);
28: }
29: EXTERN_C_END
31: /* --------------------------------------------------------------------------*/
32: static char *contents = "PETSc Krylov subspace method and preconditioner library.n
33: GMRES, PCG, Bi-CG-stab, ...n
34: Jacobi, ILU, Block Jacobi, LU, Additive Schwarz, ...n";
36: #include "src/sys/src/utils/dlregis.h"