MPI_mgparc
|
Functions | |
void | IniGeom (const int myid, const int procx, const int procy, int neigh[], int &color) |
void | IniCoord (const int myid, const int procx, const int procy, double &xl, double &xr, double &yb, double &yt) |
void IniCoord | ( | const int | myid, |
const int | procx, | ||
const int | procy, | ||
double & | xl, | ||
double & | xr, | ||
double & | yb, | ||
double & | yt | ||
) |
The quadratic domain [0,1] x [0,1] is divided into procx
* procy
subdomains numbered rowise. According to my process with rank number myid
, the coordinates of the lower left corner (xl
, yb
) and of the upper right corner (xr
, yt
) are generated.
[in] | myid | my rank |
[in] | procx | number of processes in x-direction |
[in] | procy | number of processes in y-direction |
[out] | xl | x-coordinate of left boundary |
[out] | xr | x-coordinate of right boundary |
[out] | yb | y-coordinate of lower boundary |
[out] | yt | y-coordinate of upper boundary |
void IniGeom | ( | const int | myid, |
const int | procx, | ||
const int | procy, | ||
int | neigh[], | ||
int & | color | ||
) |
The quadratic domain [0,1] x [0,1] is divided into procx
* procy
subdomains numbered rowise. According to my process with rank number myid
, the vector neigh
contains the ranks of the neighbours t the South, East, North, West.
[in] | myid | my rank |
[in] | procx | number of processes in x-direction |
[in] | procy | number of processes in y-direction |
[out] | neigh | vector of 4 elements containing the ranks of neighbouring processes, -1 indicates a boundary in this direction |
[out] | color | red/black coloring of subdomains (0/1) |