xref: /petsc/src/vec/pf/interface/pfall.c (revision 561742ed26eb17eb473b7929d5a9b68d57686b79)
1 
2 #include <petscpf.h>          /*I   "petscpf.h"   I*/
3 #include <../src/vec/pf/pfimpl.h>
4 
5 PETSC_EXTERN PetscErrorCode PFCreate_Constant(PF,void*);
6 PETSC_EXTERN PetscErrorCode PFCreate_String(PF,void*);
7 PETSC_EXTERN PetscErrorCode PFCreate_Quick(PF,void*);
8 PETSC_EXTERN PetscErrorCode PFCreate_Identity(PF,void*);
9 #if defined(PETSC_HAVE_MATLAB_ENGINE)
10 PETSC_EXTERN PetscErrorCode PFCreate_Matlab(PF,void*);
11 #endif
12 
13 /*@C
14    PFRegisterAll - Registers all of the preconditioners in the PF package.
15 
16    Not Collective
17 
18    Level: advanced
19 
20 .keywords: PF, register, all
21 
22 .seealso: PFRegister(), PFRegisterDestroy()
23 @*/
24 PetscErrorCode  PFRegisterAll(void)
25 {
26   PetscErrorCode ierr;
27 
28   PetscFunctionBegin;
29   if (PFRegisterAllCalled) PetscFunctionReturn(0);
30   PFRegisterAllCalled = PETSC_TRUE;
31 
32   ierr = PFRegister(PFCONSTANT,         PFCreate_Constant);CHKERRQ(ierr);
33   ierr = PFRegister(PFSTRING,           PFCreate_String);CHKERRQ(ierr);
34   ierr = PFRegister(PFQUICK,            PFCreate_Quick);CHKERRQ(ierr);
35   ierr = PFRegister(PFIDENTITY,         PFCreate_Identity);CHKERRQ(ierr);
36 #if defined(PETSC_HAVE_MATLAB_ENGINE)
37   ierr = PFRegister(PFMATLAB,           PFCreate_Matlab);CHKERRQ(ierr);
38 #endif
39   PetscFunctionReturn(0);
40 }
41 
42 
43