1*4096ce27SBarry Smith /* $Id: mpiaij.h,v 1.11 1995/10/22 03:22:25 bsmith Exp bsmith $ */ 28a729477SBarry Smith 3180e1086SBarry Smith #include "aij.h" 48a729477SBarry Smith 58a729477SBarry Smith typedef struct { 6180e1086SBarry Smith int *rowners, *cowners; /* ranges owned by each processor */ 78c386bf4SBarry Smith int m, n; /* local rows and columns */ 88c386bf4SBarry Smith int M, N; /* global rows and columns */ 98c386bf4SBarry Smith int rstart, rend; /* starting and ending owned rows */ 108c386bf4SBarry Smith int cstart, cend; /* starting and ending owned columns */ 118c386bf4SBarry Smith Mat A, B; /* local submatrices: A (diag part), 128c386bf4SBarry Smith B (off-diag part) */ 138c386bf4SBarry Smith int size; /* size of communicator */ 148c386bf4SBarry Smith int rank; /* rank of proc in communicator */ 158c386bf4SBarry Smith 168c386bf4SBarry Smith /* The following variables are used for matrix assembly */ 178c386bf4SBarry Smith 18180e1086SBarry Smith int assembled; /* MatAssemble has been called */ 198c386bf4SBarry Smith InsertMode insertmode; /* mode for MatSetValues */ 208c386bf4SBarry Smith Stash stash; /* stash for non-local elements */ 218c386bf4SBarry Smith MPI_Request *send_waits; /* array of send requests */ 228c386bf4SBarry Smith MPI_Request *recv_waits; /* array of receive requests */ 238c386bf4SBarry Smith int nsends, nrecvs; /* numbers of sends and receives */ 248c386bf4SBarry Smith Scalar *svalues, *rvalues; /* sending and receiving data */ 258c386bf4SBarry Smith int rmax; /* maximum message length */ 268c386bf4SBarry Smith int *colmap; /* local col number of off-diag col */ 278c386bf4SBarry Smith int *garray; /* work array */ 288c386bf4SBarry Smith 298c386bf4SBarry Smith /* The following variables are used for matrix-vector products */ 308c386bf4SBarry Smith 318c386bf4SBarry Smith Vec lvec; /* local vector */ 328c386bf4SBarry Smith VecScatter Mvctx; /* scatter context for vector */ 33*4096ce27SBarry Smith int roworiented; /* if true, row-oriented input, default true */ 34180e1086SBarry Smith } Mat_MPIAIJ; 35