MPI_jacsolve
Functions
dexx.h File Reference

Go to the source code of this file.

Functions

void Send_ProcD (const int to, const int nin, const float xin[], const MPI::Intracomm &icomm)
 
void Recv_ProcD (const int from, int &nout, float xout[], const int maxbuf, const MPI::Intracomm &icomm)
 
void ExchangeD (const int yourid, const int nin, const float xin[], int &nout, float xout[], const int maxbuf, const MPI::Intracomm &icomm)
 

Function Documentation

void ExchangeD ( const int  yourid,
const int  nin,
const float  xin[],
int &  nout,
float  xout[],
const int  maxbuf,
const MPI::Intracomm &  icomm 
)

Exchanges vectors between my process and the process with rank .

Parameters
[in]youridrank of process in communicator icomm to send the message
[in]ninnumber of elements in vector xin
[in]xinmy vector
[out]noutnumber of received elements stored in vector xout
[out]xoutvector
[in]maxbufmaximal number of elements of xout
[in]icommcommunicator to use
void Recv_ProcD ( const int  from,
int &  nout,
float  xout[],
const int  maxbuf,
const MPI::Intracomm &  icomm 
)

Receives data from process with rank from into a float-vector xout .

Parameters
[in]fromrank of process in communicator icomm to receive the message from
[out]noutnumber of received elements stored in vector xout
[out]xoutvector
[in]maxbufmaximal number of elements of xout
[in]icommcommunicator to use
void Send_ProcD ( const int  to,
const int  nin,
const float  xin[],
const MPI::Intracomm &  icomm 
)

Sends data of float-vector xin to the process with rank to .

Parameters
[in]torank of process in communicator icomm to send the message
[in]ninnumber of elements in vector xin
[in]xinvector
[in]icommcommunicator to use