#include "petscmat.h" PetscErrorCode MatCreateMPIMatConcatenateSeqMat(MPI_Comm comm,Mat seqmat,PetscInt n,MatReuse reuse,Mat *mpimat)Collective on MPI_Comm
comm | - the communicators the parallel matrix will live on | |
seqmat | - the input sequential matrices | |
n | - number of local columns (or PETSC_DECIDE) | |
reuse | - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX |
Notes: The number of columns of the matrix in EACH processor MUST be the same.