MPI_jacsolve
|
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) |
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.
[in] | nx | number of discretization intervals in x-direction |
[in] | ny | number of discretization intervals in y-direction |
[in] | sk | vector non-zero entries of CSR matrix |
[in] | id | index vector containing the first entry in a CSR row |
[out] | d | accumulated diagonal entries of CSR matrix |
[in] | neigh | vector of 4 elements containing the ranks of neighbouring processes, -1 indicates a boundary in this direction |
[in] | color | red/black coloring of subdomains (0/1) |
[in] | icomm | communicator |