1*a2e34c3dSBarry Smith /* $Id: mpiadj.h,v 1.6 2000/04/09 03:10:00 bsmith Exp bsmith $ */ 2b97cf49bSBarry Smith 3b97cf49bSBarry Smith #include "src/mat/matimpl.h" 4b97cf49bSBarry Smith 53eda8832SBarry Smith #if !defined(__ADJ_H) 63eda8832SBarry Smith #define __ADJ_H 7b97cf49bSBarry Smith 8b97cf49bSBarry Smith /* 93eda8832SBarry 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*a2e34c3dSBarry Smith PetscTruth freeaij; /* call PetscFree() on a, i,j at destroy */ 263eda8832SBarry Smith } Mat_MPIAdj; 27b97cf49bSBarry Smith 28b97cf49bSBarry Smith #endif 29