xref: /petsc/src/vec/pf/interface/pfall.c (revision bebe2cf65d55febe21a5af8db2bd2e168caaa2e7)
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 #undef __FUNCT__
14 #define __FUNCT__ "PFRegisterAll"
15 /*@C
16    PFRegisterAll - Registers all of the preconditioners in the PF package.
17 
18    Not Collective
19 
20    Level: advanced
21 
22 .keywords: PF, register, all
23 
24 .seealso: PFRegister(), PFRegisterDestroy()
25 @*/
26 PetscErrorCode  PFRegisterAll(void)
27 {
28   PetscErrorCode ierr;
29 
30   PetscFunctionBegin;
31   if (PFRegisterAllCalled) PetscFunctionReturn(0);
32   PFRegisterAllCalled = PETSC_TRUE;
33 
34   ierr = PFRegister(PFCONSTANT,         PFCreate_Constant);CHKERRQ(ierr);
35   ierr = PFRegister(PFSTRING,           PFCreate_String);CHKERRQ(ierr);
36   ierr = PFRegister(PFQUICK,            PFCreate_Quick);CHKERRQ(ierr);
37   ierr = PFRegister(PFIDENTITY,         PFCreate_Identity);CHKERRQ(ierr);
38 #if defined(PETSC_HAVE_MATLAB_ENGINE)
39   ierr = PFRegister(PFMATLAB,           PFCreate_Matlab);CHKERRQ(ierr);
40 #endif
41   PetscFunctionReturn(0);
42 }
43 
44 
45