#include "petscds.h" PetscErrorCode PetscDSRegister(const char sname[], PetscErrorCode (*function)(PetscDS))Not Collective Many br
| name | - The name of a new user-defined creation routine Many br | |
| create_func | - The creation routine itself Many br |
PetscDSRegister("my_ds", MyPetscDSCreate);
Many br
Then, your PetscDS type can be chosen with the procedural interface via Many br
PetscDSCreate(MPI_Comm, PetscDS *);
PetscDSSetType(PetscDS, "my_ds");
Many bror at runtime via the option Many br
-petscds_type my_ds
Many br
Many br
Level:advanced
Location:src/dm/dt/interface/dtds.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages