Actual source code: scoarsen.c
petsc-3.4.5 2014-06-29
2: #include <petscmat.h>
4: PETSC_EXTERN PetscErrorCode MatCoarsenCreate_MIS(MatCoarsen);
5: PETSC_EXTERN PetscErrorCode MatCoarsenCreate_HEM(MatCoarsen);
9: /*@C
10: MatCoarsenRegisterAll - Registers all of the matrix Coarsen routines in PETSc.
12: Not Collective
14: Level: developer
16: Adding new methods:
17: To add a new method to the registry. Copy this routine and
18: modify it to incorporate a call to MatCoarsenRegister() for
19: the new method, after the current list.
21: Restricting the choices: To prevent all of the methods from being
22: registered and thus save memory, copy this routine and modify it to
23: register a zero, instead of the function name, for those methods you
24: do not wish to register. Make sure that the replacement routine is
25: linked before libpetscmat.a.
27: .keywords: matrix, Coarsen, register, all
29: .seealso: MatCoarsenRegister(), MatCoarsenRegisterDestroy()
30: @*/
31: PetscErrorCode MatCoarsenRegisterAll(void)
32: {
36: MatCoarsenRegisterAllCalled = PETSC_TRUE;
38: MatCoarsenRegister(MATCOARSENMIS,MatCoarsenCreate_MIS);
39: MatCoarsenRegister(MATCOARSENHEM,MatCoarsenCreate_HEM);
40: return(0);
41: }