Actual source code: dlregis.c
1: /*$Id: dlregis.c,v 1.12 2001/03/23 23:22:45 balay Exp $*/
3: #include "petscmat.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 matrix partitioners that are in the basic PETSc libpetscmat
10: library.
12: Input Parameter:
13: path - library path
14: */
15: int PetscDLLibraryRegister(char *path)
16: {
19: PetscInitializeNoArguments(); if (ierr) return 1;
21: /*
22: If we got here then PETSc was properly loaded
23: */
24: MatPartitioningRegisterAll(path);
25: return(0);
26: }
27: EXTERN_C_END
29: /* --------------------------------------------------------------------------*/
30: static char *contents = "PETSc matrix library. n Partitioners ";
32: #include "src/sys/src/utils/dlregis.h"