xref: /petsc/src/mat/impls/mffd/mfregis.c (revision a58c3bc3391eee32bc3fd94ac7edeea38fe57aae)
1 #define PETSCMAT_DLL
2 
3 #include "src/mat/impls/mffd/mffdimpl.h"   /*I  "petscmat.h"   I*/
4 
5 EXTERN_C_BEGIN
6 EXTERN PetscErrorCode PETSCMAT_DLLEXPORT MatMFFDCreate_DS(MatMFFD);
7 EXTERN PetscErrorCode PETSCMAT_DLLEXPORT MatMFFDCreate_WP(MatMFFD);
8 EXTERN_C_END
9 
10 #undef __FUNCT__
11 #define __FUNCT__ "MatMFFDRegisterAll"
12 /*@C
13   MatMFFDRegisterAll - Registers all of the compute-h in the MatMFFD package.
14 
15   Not Collective
16 
17   Level: developer
18 
19 .keywords: MatMFFD, register, all
20 
21 .seealso:  MatMFFDRegisterDestroy(), MatMFFDRegisterDynamic), MatMFFDCreate(),
22            MatMFFDSetType()
23 @*/
24 PetscErrorCode PETSCMAT_DLLEXPORT MatMFFDRegisterAll(const char *path)
25 {
26   PetscErrorCode ierr;
27 
28   PetscFunctionBegin;
29   MatMFFDRegisterAllCalled = PETSC_TRUE;
30 
31   ierr = MatMFFDRegisterDynamic(MATMFFD_DS,path,"MatMFFDCreate_DS",MatMFFDCreate_DS);CHKERRQ(ierr);
32   ierr = MatMFFDRegisterDynamic(MATMFFD_WP,path,"MatMFFDCreate_WP",MatMFFDCreate_WP);CHKERRQ(ierr);
33   PetscFunctionReturn(0);
34 }
35 
36