MPI_mgparc
Functions
getbound.cpp File Reference

Functions

void GetBound (const int ib, const int nx, const int ny, const double w[], double s[])
 

Function Documentation

void GetBound ( const int  ib,
const int  nx,
const int  ny,
const double  w[],
double  s[] 
)

Copies the values of w corresponding to boundary ib onto vector s. South (ib==1), East (ib==2), North (ib==3), West (ib==4). The vector s has to be long enough!!

Parameters
[in]ibmy local boundary
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[in]wvector for all nodes of local discretization
[out]sshort vector with values on boundary ib