#include "petscmat.h" PetscErrorCode MatRegister(const char sname[],PetscErrorCode (*function)(Mat))Not Collective Many br
name | - name of a new user-defined matrix type Many br | |
routine_create | - routine to create method context Many br |
MatRegister("my_mat",MyMatCreate);Many br
Then, your solver can be chosen with the procedural interface via Many br
MatSetType(Mat,"my_mat")or at runtime via the option Many br
-mat_type my_mat
Many br
Many br
Level:advanced
Location:src/mat/interface/matreg.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages