Actual source code: pfall.c
1: /*$Id: pfall.c,v 1.14 2001/08/06 21:19:08 bsmith Exp $*/
3: #include petscpf.h
5: EXTERN_C_BEGIN
6: EXTERN int PFCreate_Constant(PF,void*);
7: EXTERN int PFCreate_String(PF,void*);
8: EXTERN int PFCreate_Quick(PF,void*);
9: EXTERN int PFCreate_Identity(PF,void*);
10: #if defined(PETSC_HAVE_MATLAB_ENGINE) && !defined(PETSC_USE_COMPLEX) && !defined(PETSC_USE_SINGLE)
11: EXTERN int PFCreate_Matlab(PF,void*);
12: #endif
13: EXTERN_C_END
15: /*@C
16: PFRegisterAll - Registers all of the preconditioners in the PF package.
18: Not Collective
20: Input Parameter:
21: . path - the library where the routines are to be found (optional)
23: Level: advanced
25: .keywords: PF, register, all
27: .seealso: PFRegisterDynamic(), PFRegisterDestroy()
28: @*/
29: int PFRegisterAll(char *path)
30: {
34: PFRegisterAllCalled = PETSC_TRUE;
36: PFRegisterDynamic(PFCONSTANT ,path,"PFCreate_Constant",PFCreate_Constant);
37: PFRegisterDynamic(PFSTRING ,path,"PFCreate_String",PFCreate_String);
38: PFRegisterDynamic(PFQUICK ,path,"PFCreate_Quick",PFCreate_Quick);
39: PFRegisterDynamic(PFIDENTITY ,path,"PFCreate_Identity",PFCreate_Identity);
40: #if defined(PETSC_HAVE_MATLAB_ENGINE) && !defined(PETSC_USE_COMPLEX) && !defined(PETSC_USE_SINGLE)
41: PFRegisterDynamic(PFMATLAB ,path,"PFCreate_Matlab",PFCreate_Matlab);
42: #endif
43: return(0);
44: }