#include "petscdraw.h" #include "petscviewer.h" PetscErrorCode PetscDrawRegister(const char *sname,PetscErrorCode (*function)(PetscDraw))Not Collective
name_solver | - name of a new user-defined graphics class | |
routine_create | - routine to create method context |
PetscDrawRegister("my_draw_type", MyDrawCreate);
Then, your specific graphics package can be chosen with the procedural interface via
PetscDrawSetType(ksp,"my_draw_type")or at runtime via the option
-draw_type my_draw_type
Level:developer
Location:src/sys/classes/draw/interface/drawreg.c
Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages