#include "petscfv.h" PetscErrorCode PetscLimiterRegister(const char sname[], PetscErrorCode (*function)(PetscLimiter))Not Collective
name | - The name of a new user-defined creation routine | |
create_func | - The creation routine itself |
PetscLimiterRegister("my_lim", MyPetscLimiterCreate);
Then, your PetscLimiter type can be chosen with the procedural interface via
PetscLimiterCreate(MPI_Comm, PetscLimiter *); PetscLimiterSetType(PetscLimiter, "my_lim");or at runtime via the option
-petsclimiter_type my_lim