Actual source code: mfregis.c

      1: #define PETSCSNES_DLL

     3:  #include src/snes/mf/snesmfj.h

      6: EXTERN PetscErrorCode PETSCSNES_DLLEXPORT MatSNESMFCreate_Default(MatSNESMFCtx);
      7: EXTERN PetscErrorCode PETSCSNES_DLLEXPORT MatSNESMFCreate_WP(MatSNESMFCtx);

     12: /*@C
     13:   MatSNESMFRegisterAll - Registers all of the compute-h in the MatSNESMF package.

     15:   Not Collective

     17:   Level: developer

     19: .keywords: MatSNESMF, register, all

     21: .seealso:  MatSNESMFRegisterDestroy(), MatSNESMFRegisterDynamic), MatSNESMFCreate(),
     22:            MatSNESMFSetType()
     23: @*/
     24: PetscErrorCode PETSCSNES_DLLEXPORT MatSNESMFRegisterAll(const char *path)
     25: {

     29:   MatSNESMFRegisterAllCalled = PETSC_TRUE;

     31:   MatSNESMFRegisterDynamic(MATSNESMF_DEFAULT,path,"MatSNESMFCreate_Default",MatSNESMFCreate_Default);
     32:   MatSNESMFRegisterDynamic(MATSNESMF_WP,path,"MatSNESMFCreate_WP",MatSNESMFCreate_WP);
     33:   return(0);
     34: }