xref: /petsc/src/mat/impls/sbaij/mpi/mpisbaij.h (revision c6db04a5321582041def2b1e244c75985478b3ef)
1a30f8f8cSSatish Balay 
2a30f8f8cSSatish Balay #if !defined(__MPISBAIJ_H)
3a30f8f8cSSatish Balay #define __MPISBAIJ_H
4*c6db04a5SJed Brown #include <../src/mat/impls/baij/seq/baij.h>
5*c6db04a5SJed Brown #include <../src/sys/ctable.h>
6*c6db04a5SJed Brown #include <../src/mat/impls/sbaij/seq/sbaij.h>
7*c6db04a5SJed Brown #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 
2209573ac7SBarry Smith extern PetscErrorCode MatLoad_MPISBAIJ(Mat,PetscViewer);
2309573ac7SBarry Smith extern PetscErrorCode MatMult_MPISBAIJ_Hermitian(Mat,Vec,Vec);
24a30f8f8cSSatish Balay #endif
25