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