Actual source code: mfregis.c

petsc-3.7.5 2017-01-01
Report Typos and Errors
  2: #include <../src/mat/impls/mffd/mffdimpl.h>   /*I  "petscmat.h"   I*/

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

  9: /*@C
 10:   MatMFFDRegisterAll - Registers all of the compute-h in the MatMFFD package.

 12:   Not Collective

 14:   Level: developer

 16: .keywords: MatMFFD, register, all

 18: .seealso:  MatMFFDRegisterDestroy(), MatMFFDRegister(), MatCreateMFFD(),
 19:            MatMFFDSetType()
 20: @*/
 21: PetscErrorCode  MatMFFDRegisterAll(void)
 22: {

 26:   if (MatMFFDRegisterAllCalled) return(0);
 27:   MatMFFDRegisterAllCalled = PETSC_TRUE;

 29:   MatMFFDRegister(MATMFFD_DS,MatCreateMFFD_DS);
 30:   MatMFFDRegister(MATMFFD_WP,MatCreateMFFD_WP);
 31:   return(0);
 32: }