Actual source code: dlregis.c
1: /*$Id: dlregis.c,v 1.18 2001/03/23 23:24:07 balay Exp $*/
3: #include "petscsnes.h"
5: EXTERN_C_BEGIN
6: /*
7: PetscDLLibraryRegister - This function is called when the dynamic library it is in is opened.
9: This registers all of the SNES methods that are in the basic PETSc libpetscsnes library.
11: Input Parameter:
12: 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: SNESRegisterAll(path);
26: return(0);
27: }
28: EXTERN_C_END
30: /* --------------------------------------------------------------------------*/
31: static char *contents = "PETSc nonlinear solver library. n
32: line search Newton methodsn
33: trust region Newton methodsn";
35: #include "src/sys/src/utils/dlregis.h"