petsc-3.3-p7 2013-05-11

MatPartitioningRegisterDynamic

Adds a new sparse matrix partitioning to the matrix package.

Synopsis

PetscErrorCode MatPartitioningRegisterDynamic(const char *name_partitioning,const char *path,const char *name_create,PetscErrorCode (*routine_create)(MatPartitioning))
Not Collective

Input Parameters

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.

Sample usage

   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.

Keywords

matrix, partitioning, register

See Also

MatPartitioningRegisterDestroy(), MatPartitioningRegisterAll()

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