Date: 2016-07-24T16:51:27+00:00

Actual source code: pfall.c
petsc-3.7.3 2016-07-24
Report Typos and Errors

      2: #include <petscpf.h>          /*I   "petscpf.h"   I*/
      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

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

     18:    Not Collective

     20:    Level: advanced

     22: .keywords: PF, register, all

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

     31:   if (PFRegisterAllCalled) return(0);
     32:   PFRegisterAllCalled = PETSC_TRUE;

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