ADDAGetMatrix

Creates matrix compatible with distributed array.

Synopsis

#include "petscda.h" 
PetscErrorCode PETSCDM_DLLEXPORT ADDAGetMatrix(ADDA adda, const MatType mtype, Mat *mat)
Collective on ADDA

Input Parameter

adda -the distributed array for which we create the matrix
mtype -Supported types are MATSEQAIJ, MATMPIAIJ, MATSEQBAIJ, MATMPIBAIJ, or any type which inherits from one of these (such as MATAIJ, MATLUSOL, etc.).

Output Parameter

mat -the empty Jacobian

Keywords

distributed array, matrix

See Also

DMGetMatrix()

Level:beginner
Location:
src/dm/adda/adda.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex40.c.html