1 /* $Id: mpiaij.h,v 1.12 1995/12/23 21:57:19 bsmith Exp bsmith $ */ 2 3 #if !defined(__MPIAIJ_H) 4 #define __MPIAIJ_H 5 6 #include "src/mat/impls/aij/seq/aij.h" 7 8 typedef struct { 9 int *rowners, *cowners; /* ranges owned by each processor */ 10 int m, n; /* local rows and columns */ 11 int M, N; /* global rows and columns */ 12 int rstart, rend; /* starting and ending owned rows */ 13 int cstart, cend; /* starting and ending owned columns */ 14 Mat A, B; /* local submatrices: A (diag part), 15 B (off-diag part) */ 16 int size; /* size of communicator */ 17 int rank; /* rank of proc in communicator */ 18 19 /* The following variables are used for matrix assembly */ 20 21 Stash stash; /* stash for non-local elements */ 22 int donotstash; /* 1 if off processor entries dropped */ 23 MPI_Request *send_waits; /* array of send requests */ 24 MPI_Request *recv_waits; /* array of receive requests */ 25 int nsends, nrecvs; /* numbers of sends and receives */ 26 Scalar *svalues, *rvalues; /* sending and receiving data */ 27 int rmax; /* maximum message length */ 28 int *colmap; /* local col number of off-diag col */ 29 int *garray; /* work array */ 30 31 /* The following variables are used for matrix-vector products */ 32 33 Vec lvec; /* local vector */ 34 VecScatter Mvctx; /* scatter context for vector */ 35 int roworiented; /* if true, row-oriented input, default true */ 36 37 /* The following variables are for MatGetRow() */ 38 39 int *rowindices; /* column indices for row */ 40 Scalar *rowvalues; /* nonzero values in row */ 41 PetscTruth getrowactive; /* indicates MatGetRow(), not restored */ 42 } Mat_MPIAIJ; 43 44 #endif 45