#include "petscdmmesh.h" PetscErrorCode DMMeshCreateMatrix(DM dm, SectionReal section, const MatType mtype, Mat *J)Collective on DMMesh
mesh | - the mesh object | |
section | - the section which determines data layout | |
mtype | - Supported types are MATSEQAIJ, MATMPIAIJ, MATSEQBAIJ, MATMPIBAIJ, MATSEQSBAIJ, MATMPISBAIJ, or any type which inherits from one of these (such as MATAIJ, MATLUSOL, etc.). |
Notes: This properly preallocates the number of nonzeros in the sparse matrix so you do not need to do it yourself.
Level:advanced
Location:src/dm/impls/mesh/mesh.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages