#include <mpi.h>
Go to the source code of this file.
|
| void | Send_ProcD (const int to, const int nin, const double xin[], const MPI_Comm icomm) |
| |
| void | Recv_ProcD (const int from, int &nout, double xout[], const int maxbuf, const MPI_Comm icomm) |
| |
| void | ExchangeD (const int yourid, const int nin, const double xin[], int &nout, double xout[], const int maxbuf, const MPI_Comm icomm) |
| |
| void ExchangeD |
( |
const int |
yourid, |
|
|
const int |
nin, |
|
|
const double |
xin[], |
|
|
int & |
nout, |
|
|
double |
xout[], |
|
|
const int |
maxbuf, |
|
|
const MPI_Comm |
icomm |
|
) |
| |
Exchanges vectors between my process and the process with rank .
- Parameters
-
| [in] | yourid | rank of process in communicator icomm to send the message |
| [in] | nin | number of elements in vector xin |
| [in] | xin | my vector |
| [out] | nout | number of received elements stored in vector xout |
| [out] | xout | vector |
| [in] | maxbuf | maximal number of elements of xout |
| [in] | icomm | communicator to use |
| void Recv_ProcD |
( |
const int |
from, |
|
|
int & |
nout, |
|
|
double |
xout[], |
|
|
const int |
maxbuf, |
|
|
const MPI_Comm |
icomm |
|
) |
| |
Receives data from process with rank from into a double-vector xout .
- Parameters
-
| [in] | from | rank of process in communicator icomm to receive the message from |
| [out] | nout | number of received elements stored in vector xout |
| [out] | xout | vector |
| [in] | maxbuf | maximal number of elements of xout |
| [in] | icomm | communicator to use |
| void Send_ProcD |
( |
const int |
to, |
|
|
const int |
nin, |
|
|
const double |
xin[], |
|
|
const MPI_Comm |
icomm |
|
) |
| |
Sends data of double-vector xin to the process with rank to .
- Parameters
-
| [in] | to | rank of process in communicator icomm to send the message |
| [in] | nin | number of elements in vector xin |
| [in] | xin | vector |
| [in] | icomm | communicator to use |