Actual source code: pfall.c
petsc-3.13.6 2020-09-29
2: #include <petscpf.h>
3: #include <../src/vec/pf/pfimpl.h>
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
13: /*@C
14: PFRegisterAll - Registers all of the preconditioners in the PF package.
16: Not Collective
18: Level: advanced
20: .seealso: PFRegister(), PFRegisterDestroy()
21: @*/
22: PetscErrorCode PFRegisterAll(void)
23: {
27: if (PFRegisterAllCalled) return(0);
28: PFRegisterAllCalled = PETSC_TRUE;
30: PFRegister(PFCONSTANT, PFCreate_Constant);
31: PFRegister(PFSTRING, PFCreate_String);
32: PFRegister(PFQUICK, PFCreate_Quick);
33: PFRegister(PFIDENTITY, PFCreate_Identity);
34: #if defined(PETSC_HAVE_MATLAB_ENGINE)
35: PFRegister(PFMATLAB, PFCreate_Matlab);
36: #endif
37: return(0);
38: }