Actual source code: pfall.c

      1: #define PETSCVEC_DLL
     2:  #include petscpf.h

      5: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT PFCreate_Constant(PF,void*);
      6: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT PFCreate_String(PF,void*);
      7: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT PFCreate_Quick(PF,void*);
      8: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT PFCreate_Identity(PF,void*);
      9: #if defined(PETSC_HAVE_MATLAB)
     10: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT PFCreate_Matlab(PF,void*);
     11: #endif

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

     19:    Not Collective

     21:    Input Parameter:
     22: .  path - the library where the routines are to be found (optional)

     24:    Level: advanced

     26: .keywords: PF, register, all

     28: .seealso: PFRegisterDynamic(), PFRegisterDestroy()
     29: @*/
     30: PetscErrorCode PETSCVEC_DLLEXPORT PFRegisterAll(const char path[])
     31: {

     35:   PFRegisterAllCalled = PETSC_TRUE;

     37:   PFRegisterDynamic(PFCONSTANT         ,path,"PFCreate_Constant",PFCreate_Constant);
     38:   PFRegisterDynamic(PFSTRING           ,path,"PFCreate_String",PFCreate_String);
     39:   PFRegisterDynamic(PFQUICK            ,path,"PFCreate_Quick",PFCreate_Quick);
     40:   PFRegisterDynamic(PFIDENTITY         ,path,"PFCreate_Identity",PFCreate_Identity);
     41: #if defined(PETSC_HAVE_MATLAB)
     42:   PFRegisterDynamic(PFMATLAB           ,path,"PFCreate_Matlab",PFCreate_Matlab);
     43: #endif
     44:   return(0);
     45: }