PetscMapRegisterDynamic(char *name, char *path, char *func_name, int (*create_func)(PetscMap))Not Collective
name | - The name of a new user-defined creation routine | |
path | - The path (either absolute or relative) of the library containing this routine | |
func_name | - The name of routine to create method context | |
create_func | - The creation routine itself |
If dynamic libraries are used, then the fourth input argument (routine_create) is ignored.
PetscMapRegisterDynamic("my_map","/home/username/my_lib/lib/libO/solaris/libmy.a", "MyPetscMapCreate", MyPetscMapCreate);
Then, your map type can be chosen with the procedural interface via
PetscMapCreate(MPI_Comm, PetscMap *); PetscMapSetType(PetscMap,"my_map_name");or at runtime via the option
-map_type my_map_name
Note: $PETSC_ARCH and $BOPT occuring in pathname will be replaced with appropriate values.
Level:advanced
Location:src/vec/interface/mapreg.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages