xref: /petsc/src/mat/impls/mffd/mfregis.c (revision 58d68138c660dfb4e9f5b03334792cd4f2ffd7cc)
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 /*@C
8   MatMFFDRegisterAll - Registers all of the compute-h in the MatMFFD package.
9 
10   Not Collective
11 
12   Level: developer
13 
14 .seealso: `MatMFFDRegisterDestroy()`, `MatMFFDRegister()`, `MatCreateMFFD()`,
15           `MatMFFDSetType()`
16 @*/
17 PetscErrorCode MatMFFDRegisterAll(void) {
18   PetscFunctionBegin;
19   if (MatMFFDRegisterAllCalled) PetscFunctionReturn(0);
20   MatMFFDRegisterAllCalled = PETSC_TRUE;
21 
22   PetscCall(MatMFFDRegister(MATMFFD_DS, MatCreateMFFD_DS));
23   PetscCall(MatMFFDRegister(MATMFFD_WP, MatCreateMFFD_WP));
24   PetscFunctionReturn(0);
25 }
26