Actual source code: mfregis.c

  1: #define PETSCSNES_DLL

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

  6: EXTERN PetscErrorCode  MatSNESMFCreate_DS(MatSNESMFCtx);
  7: EXTERN PetscErrorCode  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  MatSNESMFRegisterAll(const char *path)
 25: {

 29:   MatSNESMFRegisterAllCalled = PETSC_TRUE;

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