Actual source code: pfall.c

petsc-3.5.1 2014-08-06
Report Typos and Errors
  2: #include <petscpf.h>          /*I   "petscpf.h"   I*/

  4: PETSC_EXTERN PetscErrorCode PFCreate_Constant(PF,void*);
  5: PETSC_EXTERN PetscErrorCode PFCreate_String(PF,void*);
  6: PETSC_EXTERN PetscErrorCode PFCreate_Quick(PF,void*);
  7: PETSC_EXTERN PetscErrorCode PFCreate_Identity(PF,void*);
  8: #if defined(PETSC_HAVE_MATLAB_ENGINE)
  9: PETSC_EXTERN PetscErrorCode PFCreate_Matlab(PF,void*);
 10: #endif

 14: /*@C
 15:    PFRegisterAll - Registers all of the preconditioners in the PF package.

 17:    Not Collective

 19:    Level: advanced

 21: .keywords: PF, register, all

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

 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: }