xref: /petsc/src/vec/pf/interface/pfall.c (revision 8cc058d9cd56c1ccb3be12a47760ddfc446aaffc)
17d0a6c19SBarry Smith 
2c6db04a5SJed Brown #include <petscpf.h>          /*I   "petscpf.h"   I*/
3292f8084SBarry Smith 
4*8cc058d9SJed Brown PETSC_EXTERN PetscErrorCode PFCreate_Constant(PF,void*);
5*8cc058d9SJed Brown PETSC_EXTERN PetscErrorCode PFCreate_String(PF,void*);
6*8cc058d9SJed Brown PETSC_EXTERN PetscErrorCode PFCreate_Quick(PF,void*);
7*8cc058d9SJed Brown PETSC_EXTERN PetscErrorCode PFCreate_Identity(PF,void*);
8909a696eSBarry Smith #if defined(PETSC_HAVE_MATLAB_ENGINE)
9*8cc058d9SJed Brown PETSC_EXTERN PetscErrorCode PFCreate_Matlab(PF,void*);
10292f8084SBarry Smith #endif
11292f8084SBarry Smith 
12292f8084SBarry Smith #undef __FUNCT__
13292f8084SBarry Smith #define __FUNCT__ "PFRegisterAll"
14292f8084SBarry Smith /*@C
15292f8084SBarry Smith    PFRegisterAll - Registers all of the preconditioners in the PF package.
16292f8084SBarry Smith 
17292f8084SBarry Smith    Not Collective
18292f8084SBarry Smith 
19292f8084SBarry Smith    Input Parameter:
20292f8084SBarry Smith .  path - the library where the routines are to be found (optional)
21292f8084SBarry Smith 
22292f8084SBarry Smith    Level: advanced
23292f8084SBarry Smith 
24292f8084SBarry Smith .keywords: PF, register, all
25292f8084SBarry Smith 
26292f8084SBarry Smith .seealso: PFRegisterDynamic(), PFRegisterDestroy()
27292f8084SBarry Smith @*/
287087cfbeSBarry Smith PetscErrorCode  PFRegisterAll(const char path[])
29292f8084SBarry Smith {
30292f8084SBarry Smith   PetscErrorCode ierr;
31292f8084SBarry Smith 
32292f8084SBarry Smith   PetscFunctionBegin;
33292f8084SBarry Smith   PFRegisterAllCalled = PETSC_TRUE;
34292f8084SBarry Smith 
35292f8084SBarry Smith   ierr = PFRegisterDynamic(PFCONSTANT         ,path,"PFCreate_Constant",PFCreate_Constant);CHKERRQ(ierr);
36292f8084SBarry Smith   ierr = PFRegisterDynamic(PFSTRING           ,path,"PFCreate_String",PFCreate_String);CHKERRQ(ierr);
37292f8084SBarry Smith   ierr = PFRegisterDynamic(PFQUICK            ,path,"PFCreate_Quick",PFCreate_Quick);CHKERRQ(ierr);
38292f8084SBarry Smith   ierr = PFRegisterDynamic(PFIDENTITY         ,path,"PFCreate_Identity",PFCreate_Identity);CHKERRQ(ierr);
39909a696eSBarry Smith #if defined(PETSC_HAVE_MATLAB_ENGINE)
40292f8084SBarry Smith   ierr = PFRegisterDynamic(PFMATLAB           ,path,"PFCreate_Matlab",PFCreate_Matlab);CHKERRQ(ierr);
41292f8084SBarry Smith #endif
42292f8084SBarry Smith   PetscFunctionReturn(0);
43292f8084SBarry Smith }
44292f8084SBarry Smith 
45292f8084SBarry Smith 
46