1 #include <../src/mat/impls/mffd/mffdimpl.h> /*I "petscmat.h" I*/ 2 3 PETSC_EXTERN PetscErrorCode MatCreateMFFD_DS(MatMFFD); 4 PETSC_EXTERN PetscErrorCode MatCreateMFFD_WP(MatMFFD); 5 6 /*@C 7 MatMFFDRegisterAll - Registers all of the compute-h in the `MATMFFD` package. 8 9 Not Collective 10 11 Level: developer 12 13 .seealso: `MATMFFD`, `MatMFFDRegisterDestroy()`, `MatMFFDRegister()`, `MatCreateMFFD()`, 14 `MatMFFDSetType()` 15 @*/ MatMFFDRegisterAll(void)16PetscErrorCode MatMFFDRegisterAll(void) 17 { 18 PetscFunctionBegin; 19 if (MatMFFDRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS); 20 MatMFFDRegisterAllCalled = PETSC_TRUE; 21 22 PetscCall(MatMFFDRegister(MATMFFD_DS, MatCreateMFFD_DS)); 23 PetscCall(MatMFFDRegister(MATMFFD_WP, MatCreateMFFD_WP)); 24 PetscFunctionReturn(PETSC_SUCCESS); 25 } 26