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: #undef __FUNCT__
17: /*@C
18: PFRegisterAll - Registers all of the preconditioners in the PF package.
20: Not Collective
22: Input Parameter:
23: . path - the library where the routines are to be found (optional)
25: Level: advanced
27: .keywords: PF, register, all
29: .seealso: PFRegisterDynamic(), PFRegisterDestroy()
30: @*/
31: int PFRegisterAll(char *path)
32: {
36: PFRegisterAllCalled = PETSC_TRUE;
38: PFRegisterDynamic(PFCONSTANT ,path,"PFCreate_Constant",PFCreate_Constant);
39: PFRegisterDynamic(PFSTRING ,path,"PFCreate_String",PFCreate_String);
40: PFRegisterDynamic(PFQUICK ,path,"PFCreate_Quick",PFCreate_Quick);
41: PFRegisterDynamic(PFIDENTITY ,path,"PFCreate_Identity",PFCreate_Identity);
42: #if defined(PETSC_HAVE_MATLAB_ENGINE) && !defined(PETSC_USE_COMPLEX) && !defined(PETSC_USE_SINGLE)
43: PFRegisterDynamic(PFMATLAB ,path,"PFCreate_Matlab",PFCreate_Matlab);
44: #endif
45: return(0);
46: }