MPI_jacsolve
Functions
accudiag.h File Reference

Go to the source code of this file.

Functions

void AccuDiag (const int nnode, const int id[], const int ik[], const double sk[], double d[], const int nx, const int ny, const int neigh[], const int color, const MPI::Intracomm &icomm)
 

Function Documentation

void AccuDiag ( const int  nnode,
const int  id[],
const int  ik[],
const double  sk[],
double  d[],
const int  nx,
const int  ny,
const int  neigh[],
const int  color,
const MPI::Intracomm &  icomm 
)

Copies the diagonal entries of a distributed symmetric CSR matrix (sk,id, ik) onto a vector and accumulates them.

Parameters
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[in]skvector non-zero entries of CSR matrix
[in]idindex vector containing the first entry in a CSR row
[out]daccumulated diagonal entries of CSR matrix
[in]neighvector of 4 elements containing the ranks of neighbouring processes, -1 indicates a boundary in this direction
[in]colorred/black coloring of subdomains (0/1)
[in]icommcommunicator