Actual source code: pfall.c

petsc-3.9.0 2018-04-07
Report Typos and Errors

  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: .keywords: PF, register, all

 22: .seealso: PFRegister(), PFRegisterDestroy()
 23: @*/
 24: PetscErrorCode  PFRegisterAll(void)
 25: {

 29:   if (PFRegisterAllCalled) return(0);
 30:   PFRegisterAllCalled = PETSC_TRUE;

 32:   PFRegister(PFCONSTANT,         PFCreate_Constant);
 33:   PFRegister(PFSTRING,           PFCreate_String);
 34:   PFRegister(PFQUICK,            PFCreate_Quick);
 35:   PFRegister(PFIDENTITY,         PFCreate_Identity);
 36: #if defined(PETSC_HAVE_MATLAB_ENGINE)
 37:   PFRegister(PFMATLAB,           PFCreate_Matlab);
 38: #endif
 39:   return(0);
 40: }