#include "petscmat.h" PetscErrorCode MatSeqAIJRegister(const char sname[],PetscErrorCode (*function)(Mat,MatType,MatReuse,Mat *))Not Collective
name | - name of a new user-defined matrix type, for example MATSEQAIJCRL | |
function | - routine to convert to subtype |
Then, your matrix can be chosen with the procedural interface at runtime via the option
-mat_seqaij_type my_mat