#include "petscmatcoarsen.h" PetscErrorCode MatCoarsenRegister(const char sname[],PetscErrorCode (*function)(MatCoarsen))Logically Collective
sname | - name of coarsen (for example MATCOARSENMIS) | |
function | - function pointer that creates the coarsen type |
MatCoarsenRegister("my_agg",MyAggCreate);
Then, your aggregator can be chosen with the procedural interface via
MatCoarsenSetType(agg,"my_agg")or at runtime via the option
-mat_coarsen_type my_agg