1*3eda8832SBarry Smith /* $Id: mpicsr.h,v 1.5 2000/02/02 20:09:14 bsmith Exp bsmith $ */ 2b97cf49bSBarry Smith 3b97cf49bSBarry Smith #include "src/mat/matimpl.h" 4b97cf49bSBarry Smith 5*3eda8832SBarry Smith #if !defined(__ADJ_H) 6*3eda8832SBarry Smith #define __ADJ_H 7b97cf49bSBarry Smith 8b97cf49bSBarry Smith /* 9*3eda8832SBarry Smith MATMPIAdj format - Compressed row storage for storing adjacency lists, and possibly weights 10329f5518SBarry 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 */ 234c49b128SBarry Smith int *values; /* numerical values */ 24b97cf49bSBarry Smith PetscTruth symmetric; /* user indicates the nonzero structure is symmetric */ 25*3eda8832SBarry Smith } Mat_MPIAdj; 26b97cf49bSBarry Smith 27b97cf49bSBarry Smith #endif 28