1*329f5518SBarry Smith /* $Id: mpiadj.h,v 1.3 1998/12/03 04:01:42 bsmith Exp bsmith $ */ 2b97cf49bSBarry Smith 3b97cf49bSBarry Smith #include "src/mat/matimpl.h" 4b97cf49bSBarry Smith 5*329f5518SBarry Smith #if !defined(__CSR_H) 6*329f5518SBarry Smith #define __CSR_H 7b97cf49bSBarry Smith 8b97cf49bSBarry Smith /* 9*329f5518SBarry Smith MATMPICSR format - Compressed row storage for storing adjacency lists, and possibly weights 10*329f5518SBarry Smith This is for grid reorderings (to reduce bandwidth) 11b97cf49bSBarry Smith grid partitionings, etc. This is NOT currently a dynamic data-structure. 12b97cf49bSBarry Smith 13b97cf49bSBarry Smith */ 14b97cf49bSBarry Smith 15b97cf49bSBarry Smith typedef struct { 160752156aSBarry Smith int *rowners; /* ranges owned by each processor */ 170752156aSBarry Smith int rstart,rend; /* start and end of local rows */ 180752156aSBarry Smith int m; /* local rows */ 19b97cf49bSBarry Smith int nz; 200752156aSBarry Smith int *diag; /* pointers to diagonal elements, if they exist */ 21b97cf49bSBarry Smith int *i; /* pointer to beginning of each row */ 22b97cf49bSBarry Smith int *j; /* column values: j + i[k] - 1 is start of row k */ 23*329f5518SBarry Smith Scalar *values; /* numerical values */ 24b97cf49bSBarry Smith PetscTruth symmetric; /* user indicates the nonzero structure is symmetric */ 25*329f5518SBarry Smith } Mat_MPICSR; 26b97cf49bSBarry Smith 27b97cf49bSBarry Smith #endif 28