MatCreateMPIAIJSumSeqAIJ#

Creates a MATMPIAIJ matrix by adding sequential matrices from each processor

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatCreateMPIAIJSumSeqAIJ(MPI_Comm comm, Mat seqmat, PetscInt m, PetscInt n, MatReuse scall, Mat *mpimat)

Collective

Input Parameters#

Output Parameter#

  • mpimat - the parallel matrix generated

Note#

The dimensions of the sequential matrix in each processor MUST be the same. The input seqmat is included into the container “Mat_Merge_SeqsToMPI”, and will be destroyed when mpimat is destroyed. Call PetscObjectQuery() to access seqmat.

See Also#

Matrices, Mat, MatCreateAIJ()

Level#

advanced

Location#

src/mat/impls/aij/mpi/mpiaij.c


Edit on GitLab

Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages