MPI_mgparc
|
#include "header.h"
Functions | |
void | Interpolate (const int nx, const int ny, double w[], const int nx_c, const int ny_c, const double w_c[], const int neigh[]) |
void | Restrict (const int nx, const int ny, const double w[], const int nx_c, const int ny_c, double w_c[], const int neigh[]) |
void Interpolate | ( | const int | nx, |
const int | ny, | ||
double | w[], | ||
const int | nx_c, | ||
const int | ny_c, | ||
const double | w_c[], | ||
const int | neigh[] | ||
) |
Bilinear interpolation of a coarse grid vector w_c
onto a fine grid vector w
. The underlying discretization is a tensor product grid.
[in] | nx | number of fine grid intervals in x-direction |
[in] | ny | number of fine grid intervals in y-direction |
[out] | w | interpolated vector on fine grid |
[in] | nx_c | number of fine grid intervals in x-direction |
[in] | ny_c | number of fine grid intervals in y-direction |
[in] | w_c | original vector on coarse grid |
[in] | neigh | vector of 4 elements containing the ranks of neighbouring processes, -1 indicates a Dirichlet boundary in this direction. Use other negative values for Neumann boundary |
void Restrict | ( | const int | nx, |
const int | ny, | ||
const double | w[], | ||
const int | nx_c, | ||
const int | ny_c, | ||
double | w_c[], | ||
const int | neigh[] | ||
) |
Bilinear restriction of a fine grid vector w
onto a coarse grid vector w_c
. The underlying discretization is a tensor product grid.
[in] | nx | number of fine grid intervals in x-direction |
[in] | ny | number of fine grid intervals in y-direction |
[in] | w | interpolated vector on fine grid |
[in] | nx_c | number of fine grid intervals in x-direction |
[in] | ny_c | number of fine grid intervals in y-direction |
[out] | w_c | original vector on coarse grid |
[in] | neigh | vector of 4 elements containing the ranks of neighbouring processes, -1 indicates a Dirichlet boundary in this direction. Use other negative values for Neumann boundary |