Actual source code: pfall.c


  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)
 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: {
 24:   if (PFRegisterAllCalled) return 0;
 25:   PFRegisterAllCalled = PETSC_TRUE;

 27:   PFRegister(PFCONSTANT, PFCreate_Constant);
 28:   PFRegister(PFSTRING, PFCreate_String);
 29:   PFRegister(PFQUICK, PFCreate_Quick);
 30:   PFRegister(PFIDENTITY, PFCreate_Identity);
 31: #if defined(PETSC_HAVE_MATLAB)
 32:   PFRegister(PFMATLAB, PFCreate_Matlab);
 33: #endif
 34:   return 0;
 35: }