#include "petscdmplextransform.h" PetscErrorCode DMPlexTransformRegister(const char name[], PetscErrorCode (*create_func)(DMPlexTransform))Not Collective
name | - The name of a new user-defined creation routine | |
create_func | - The creation routine itself |
DMPlexTransformRegister("my_transform", MyTransformCreate);
Then, your transform type can be chosen with the procedural interface via
DMPlexTransformCreate(MPI_Comm, DMPlexTransform *); DMPlexTransformSetType(DMPlexTransform, "my_transform");or at runtime via the option
-dm_plex_transform_type my_transform