#include "petscfv.h" PetscErrorCode PetscFVRegister(const char sname[], PetscErrorCode (*function)(PetscFV))Not Collective
name | - The name of a new user-defined creation routine | |
create_func | - The creation routine itself |
PetscFVRegister("my_fv", MyPetscFVCreate);
Then, your PetscFV type can be chosen with the procedural interface via
PetscFVCreate(MPI_Comm, PetscFV *); PetscFVSetType(PetscFV, "my_fv");or at runtime via the option
-petscfv_type my_fv