#include <mpi.h>
Go to the source code of this file.
|
void | VecAccu (const int nx, const int ny, double w[], const int neigh[], const int color, const MPI_Comm icomm) |
|
void | FreeVecAccu () |
|
Frees the dynamic memory allocated in the first call in VecAccu.
- See also
- VecAccu
void VecAccu |
( |
const int |
nx, |
|
|
const int |
ny, |
|
|
double |
w[], |
|
|
const int |
neigh[], |
|
|
const int |
color, |
|
|
const MPI_Comm |
icomm |
|
) |
| |
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 |