petsc3.8.4 20180324
MatCreateMPIAIJWithSeqAIJ
creates a MPIAIJ matrix using SeqAIJ matrices that contain the "diagonal" and "offdiagonal" part of the matrix in CSR format.
Synopsis
#include "petscmat.h"
PetscErrorCode MatCreateMPIAIJWithSeqAIJ(MPI_Comm comm,Mat A,Mat B,const PetscInt garray[],Mat *mat)
Collective on MPI_Comm
Input Parameters
 comm   MPI communicator

 A   "diagonal" portion of matrix

 B   "offdiagonal" portion of matrix, may have empty columns, will be destroyed by this routine

 garray   global index of B columns

Output Parameter
mat the matrix, with input A as its local diagonal matrix
Notes
See MatCreateAIJ() for the definition of "diagonal" and "offdiagonal" portion of the matrix.
A becomes part of output mat, B is destroyed by this routine. The user cannot use A and B anymore.
See Also
MatCreateMPIAIJWithSplitArrays()
Level:advanced
Location:src/mat/impls/aij/mpi/mpiaij.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages