FieldClassMapRegister(char *name, char *path, char *func_name, int (*create_func)(FieldClassMap))
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 (create_func) is ignored.
FieldClassMapRegister("my_map", /home/username/my_lib/lib/libO/solaris/mylib.a, "MyFunc", MyFunc);
Then, your map type can be chosen with the procedural interface via
FieldClassMapSetType(vec, "my_map")or at runtime via the option
-class_map_type my_map
$PETSC_ARCH and $BOPT occuring in pathname will be replaced with appropriate values.
Level:advanced
Location:src/grid/interface/fieldClassMap.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages