FieldClassMapRegister

Adds a creation method to the class map package.

Synopsis


FieldClassMapRegister(char *name, char *path, char *func_name, int (*create_func)(FieldClassMap))

Not Collective

Input Parameters

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

Notes

FieldClassMapRegister() may be called multiple times to add several user-defined mapes.

If dynamic libraries are used, then the fourth input argument (create_func) is ignored.

Sample usage

  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.

Keywords

class, field class, class map, register

See Also

FieldClassMapRegisterAll(), FieldClassMapRegisterDestroy()

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