Accumulates vector w, i.e., a distributed vector is converted into an accumulated vector. Dynamic memory allocation in the first call of this function.
- Parameters:
-
| [in] | nx | number of discretization intervals in x-direction |
| [in] | ny | number of discretization intervals in y-direction |
| [in,out] | w | vector for all nodes of local discretization |
| [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 |