PetscErrorCode MatOrderingRegisterDynamic(const char *name_ordering,const char *path,const char *name_create,PetscErrorCode (*routine_create)(MatOrdering))Not Collective
sname | - name of ordering (for example MATORDERINGND) | |
path | - location of library where creation routine is | |
name | - name of function that creates the ordering type,a string | |
function | - function pointer that creates the ordering |
If dynamic libraries are used, then the fourth input argument (function) is ignored.
MatOrderingRegisterDynamic("my_order",/home/username/my_lib/lib/libO/solaris/mylib.a, "MyOrder",MyOrder);
Then, your partitioner can be chosen with the procedural interface via
MatOrderingSetType(part,"my_order)or at runtime via the option
-pc_factor_mat_ordering_type my_order
${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