xref: /petsc/src/mat/impls/adj/mpi/mpiadj.h (revision 3f1db9ec2fd39765c6c3a00831044586630c4cca)
1 /* $Id: mpiadj.h,v 1.2 1997/09/26 02:19:39 bsmith Exp bsmith $ */
2 
3 #include "src/mat/matimpl.h"
4 
5 #if !defined(__ADJ_H)
6 #define __ADJ_H
7 
8 /*
9   MATMPIADJ format - Compressed row storage for storing adjacency lists, but no
10                      matrix values. 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   PetscTruth       symmetric;        /* user indicates the nonzero structure is symmetric */
24 } Mat_MPIAdj;
25 
26 #endif
27