petsc-3.3-p7 2013-05-11

MatCoarsenRegisterDynamic

Adds a new sparse matrix coarsen to the matrix package.

Synopsis

PetscErrorCode MatCoarsenRegisterDynamic(const char *name_coarsen,const char *path,const char *name_create,PetscErrorCode (*routine_create)(MatCoarsen))
Not Collective

Input Parameters

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.

Sample usage

   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.

Keywords

matrix, coarsen, register

See Also

MatCoarsenRegisterDestroy(), MatCoarsenRegisterAll()

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