Actual source code: dlregis.c
1: /*$Id$*/
3: #include "tao_solver.h"
8: /*
9: DLLibraryRegister - This function is called when the dynamic library it is in is opened.
11: This registers all of the TAO methods that are in the basic libtao library.
13: Input Parameter:
14: path - library path
15: */
16: int PetscDLLibraryRegister_tao(const char *path)
17: {
18: int info;
19: TaoFunctionBegin;
21: #ifdef TAO_USE_PETSC
22: info = PetscInitializeNoArguments(); if (info) return 1;
23: #endif
25: /*
26: If we got here then PETSc was properly loaded
27: */
28: info = TaoRegisterAll(path);CHKERRQ(info);
29: TaoFunctionReturn(0);
30: }