Copies the diagonal entries of a distributed symmetric CSR matrix (sk
,id
, ik
) onto a vector and accumulates them.
- Parameters
-
[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 last 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 |