#include "petscvec.h" PetscErrorCode VecScatterRegister(const char sname[], PetscErrorCode (*function)(VecScatter))Not Collective
name | - The name of a new user-defined creation routine | |
create_func | - The creation routine itself |
VecScatterRegister("my_vecscatter",MyVecScatterCreate);
Then, your vector scatter type can be chosen with the procedural interface via
VecScatterCreate(MPI_Comm, VecScatter *); VecScatterSetType(VecScatter,"my_vectorscatter_name");or at runtime via the option
-vecscatter_type my_vectorscatter_name