xref: /petsc/src/mat/impls/sbaij/mpi/mpisbaij.h (revision 09573ac72a50d3e7ecd55a2b7f0ef28450cd0a8b)
1a30f8f8cSSatish Balay 
2a30f8f8cSSatish Balay #if !defined(__MPISBAIJ_H)
3a30f8f8cSSatish Balay #define __MPISBAIJ_H
47c4f633dSBarry Smith #include "../src/mat/impls/baij/seq/baij.h"
57c4f633dSBarry Smith #include "../src/sys/ctable.h"
67c4f633dSBarry Smith #include "../src/mat/impls/sbaij/seq/sbaij.h"
77c4f633dSBarry Smith #include "../src/mat/impls/baij/mpi/mpibaij.h"
8a30f8f8cSSatish Balay 
9a30f8f8cSSatish Balay typedef struct {
101d18e487SKris Buschelman   MPIBAIJHEADER;
11633e10c7SHong Zhang   Vec           slvec0,slvec1;            /* parallel vectors */
1240781036SHong Zhang   Vec           slvec0b,slvec1a,slvec1b;  /* seq vectors: local partition of slvec0 and slvec1 */
1340781036SHong Zhang   VecScatter    sMvctx;                   /* scatter context for vector used for reducing communication */
1459ffdab8SBarry Smith 
1541f059aeSBarry Smith   Vec           diag;                     /* used in MatSOR_MPISBAIJ() with Eisenstat */
16fa22f6d0SBarry Smith   Vec           bb1,xx1;
1759ffdab8SBarry Smith   /* these are used in MatSetValues() as tmp space before passing to the stasher */
1859ffdab8SBarry Smith   PetscInt      n_loc,*in_loc;            /* nloc is length of in_loc and v_loc */
1959ffdab8SBarry Smith   MatScalar     *v_loc;
20a30f8f8cSSatish Balay } Mat_MPISBAIJ;
21a30f8f8cSSatish Balay 
22*09573ac7SBarry Smith extern PetscErrorCode MatLoad_MPISBAIJ(Mat,PetscViewer);
23*09573ac7SBarry Smith extern PetscErrorCode MatMult_MPISBAIJ_Hermitian(Mat,Vec,Vec);
24a30f8f8cSSatish Balay #endif
25