PetscErrorCode MatPartitioningRegisterDynamic(const char *name_partitioning,const char *path,const char *name_create,PetscErrorCode (*routine_create)(MatPartitioning))Not Collective
sname | - name of partitioning (for example MATPARTITIONINGCURRENT) or parmetis | |
path | - location of library where creation routine is | |
name | - name of function that creates the partitioning type, a string | |
function | - function pointer that creates the partitioning type |
If dynamic libraries are used, then the fourth input argument (function) is ignored.
MatPartitioningRegisterDynamic("my_part",/home/username/my_lib/lib/libO/solaris/mylib.a, "MyPartCreate",MyPartCreate);
Then, your partitioner can be chosen with the procedural interface via
MatPartitioningSetType(part,"my_part")or at runtime via the option
-mat_partitioning_type my_part
$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