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