PETSc version 3.15.4
creates a MPIAIJ matrix using SeqAIJ matrices that contain the "diagonal" and "off-diagonal" part of the matrix in CSR format.
PetscErrorCode MatCreateMPIAIJWithSeqAIJ(MPI_Comm comm,Mat A,Mat B,const PetscInt garray,Mat *mat)
|comm ||- MPI communicator
|A ||- "diagonal" portion of matrix
|B ||- "off-diagonal" portion of matrix, may have empty columns, will be destroyed by this routine
|garray ||- global index of B columns
|mat ||- the matrix, with input A as its local diagonal matrix
See MatCreateAIJ() for the definition of "diagonal" and "off-diagonal" portion of the matrix.
A becomes part of output mat, B is destroyed by this routine. The user cannot use A and B anymore.
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages