1 /* $Id: mpiadj.h,v 1.1 1997/09/23 20:11:19 bsmith Exp bsmith $ */ 2 3 #include "src/mat/matimpl.h" 4 #include <math.h> 5 6 #if !defined(__ADJ_H) 7 #define __ADJ_H 8 9 /* 10 MATMPIADJ format - Compressed row storage for storing adjacency lists, but no 11 matrix values. This is for grid reorderings (to reduce bandwidth) 12 grid partitionings, etc. This is NOT currently a dynamic data-structure. 13 14 */ 15 16 typedef struct { 17 int *rowners; /* ranges owned by each processor */ 18 int rstart, rend; /* start and end of local rows */ 19 int m; /* local rows */ 20 int nz; 21 int *diag; /* pointers to diagonal elements, if they exist */ 22 int *i; /* pointer to beginning of each row */ 23 int *j; /* column values: j + i[k] - 1 is start of row k */ 24 PetscTruth symmetric; /* user indicates the nonzero structure is symmetric */ 25 } Mat_MPIAdj; 26 27 #endif 28