Date: 2025-03-29T05:58:34+00:00

Actual source code: mfregis.c

      1: #include <../src/mat/impls/mffd/mffdimpl.h>

      3: PETSC_EXTERN PetscErrorCode MatCreateMFFD_DS(MatMFFD);
      4: PETSC_EXTERN PetscErrorCode MatCreateMFFD_WP(MatMFFD);

      6: /*@C
      7:   MatMFFDRegisterAll - Registers all of the compute-h in the `MATMFFD` package.

      9:   Not Collective

     11:   Level: developer

     13: .seealso: `MATMFFD`, `MatMFFDRegisterDestroy()`, `MatMFFDRegister()`, `MatCreateMFFD()`,
     14:           `MatMFFDSetType()`
     15: @*/
     16: PetscErrorCode MatMFFDRegisterAll(void)
     17: {
     18:   PetscFunctionBegin;
     19:   if (MatMFFDRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
     20:   MatMFFDRegisterAllCalled = PETSC_TRUE;

     22:   PetscCall(MatMFFDRegister(MATMFFD_DS, MatCreateMFFD_DS));
     23:   PetscCall(MatMFFDRegister(MATMFFD_WP, MatCreateMFFD_WP));
     24:   PetscFunctionReturn(PETSC_SUCCESS);
     25: }