#define PETSCMAT_DLL #include "src/mat/impls/mffd/mffdimpl.h" /*I "petscmat.h" I*/ EXTERN_C_BEGIN EXTERN PetscErrorCode PETSCMAT_DLLEXPORT MatMFFDCreate_DS(MatMFFD); EXTERN PetscErrorCode PETSCMAT_DLLEXPORT MatMFFDCreate_WP(MatMFFD); EXTERN_C_END #undef __FUNCT__ #define __FUNCT__ "MatMFFDRegisterAll" /*@C MatMFFDRegisterAll - Registers all of the compute-h in the MatMFFD package. Not Collective Level: developer .keywords: MatMFFD, register, all .seealso: MatMFFDRegisterDestroy(), MatMFFDRegisterDynamic), MatMFFDCreate(), MatMFFDSetType() @*/ PetscErrorCode PETSCMAT_DLLEXPORT MatMFFDRegisterAll(const char *path) { PetscErrorCode ierr; PetscFunctionBegin; MatMFFDRegisterAllCalled = PETSC_TRUE; ierr = MatMFFDRegisterDynamic(MATMFFD_DS,path,"MatMFFDCreate_DS",MatMFFDCreate_DS);CHKERRQ(ierr); ierr = MatMFFDRegisterDynamic(MATMFFD_WP,path,"MatMFFDCreate_WP",MatMFFDCreate_WP);CHKERRQ(ierr); PetscFunctionReturn(0); }