#include "petsccharacteristic.h" PetscErrorCode CharacteristicRegister(const char sname[],PetscErrorCode (*function)(Characteristic))Not Collective
name_solver | - name of a new user-defined solver | |
routine_create | - routine to create method context |
CharacteristicRegister("my_char", MyCharCreate);
Then, your Characteristic type can be chosen with the procedural interface via
CharacteristicCreate(MPI_Comm, Characteristic* &char); CharacteristicSetType(char,"my_char");or at runtime via the option
-characteristic_type my_char
Level:advanced
Location:src/ts/characteristic/interface/characteristic.c
Index of all Characteristic routines
Table of Contents for all manual pages
Index of all manual pages