PetscErrorCode MatCoarsenRegisterDynamic(const char *name_coarsen,const char *path,const char *name_create,PetscErrorCode (*routine_create)(MatCoarsen))Not Collective
| sname | - name of coarsen (for example MATCOARSENMIS) | |
| path | - location of library where creation routine is | |
| name | - name of function that creates the coarsen type, a string | |
| function | - function pointer that creates the coarsen type |
If dynamic libraries are used, then the fourth input argument (function) is ignored.
MatCoarsenRegisterDynamic("my_agg",/home/username/my_lib/lib/libO/solaris/mylib.a,
"MyAggCreate",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
$PETSC_ARCH occuring in pathname will be replaced with appropriate values.
Level:developer
Location:src/mat/../../include/petscmat.h
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages