petsc-3.7.1 2016-05-15
Report Typos and Errors

MatCreateMPIAIJSumSeqAIJ

Creates a MPIAIJ 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 on MPI_Comm Many br

Input Parameters

comm - the communicators the parallel matrix will live on Many br
seqmat - the input sequential matrices Many br
m - number of local rows (or PETSC_DECIDE) Many br
n - number of local columns (or PETSC_DECIDE) Many br
scall - either MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX Many br

Output Parameter

mpimat -the parallel matrix generated Many br

Many br

Notes

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

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