Commit a9991812 authored by incardon's avatar incardon

Fixing Coverity + documentation

parent 046f18aa
...@@ -9,20 +9,19 @@ ...@@ -9,20 +9,19 @@
* The purpose of these classes is to correctly choose the right call based on the type we want to receive * The purpose of these classes is to correctly choose the right call based on the type we want to receive
* *
*/ */
/*! \brief General recv for general buffer
*
* \param proc processor from which to receive
* \param tag
* \param buf buffer where to store the data
* \param sz size to receive
* \param req MPI request
*
*/
class MPI_IrecvWB class MPI_IrecvWB
{ {
public: public:
/*! \brief General recv for general buffer
*
* \param proc processor from which to receive
* \param tag
* \param buf buffer where to store the data
* \param sz size to receive
* \param req MPI request
*
*/
static inline void recv(size_t proc , size_t tag ,void * buf, size_t sz, MPI_Request & req) static inline void recv(size_t proc , size_t tag ,void * buf, size_t sz, MPI_Request & req)
{ {
MPI_SAFE_CALL(MPI_Irecv(buf,sz,MPI_BYTE, proc, tag , MPI_COMM_WORLD,&req)); MPI_SAFE_CALL(MPI_Irecv(buf,sz,MPI_BYTE, proc, tag , MPI_COMM_WORLD,&req));
...@@ -137,7 +136,7 @@ template<> class MPI_IrecvW<long int> ...@@ -137,7 +136,7 @@ template<> class MPI_IrecvW<long int>
public: public:
static inline void recv(size_t proc , size_t tag ,openfpm::vector<long int> & v, MPI_Request & req) static inline void recv(size_t proc , size_t tag ,openfpm::vector<long int> & v, MPI_Request & req)
{ {
MPI_Irecv(v.getPointer(), v.size(),MPI_LONG, proc, tag , MPI_COMM_WORLD,&req); MPI_SAFE_CALL(MPI_Irecv(v.getPointer(), v.size(),MPI_LONG, proc, tag , MPI_COMM_WORLD,&req));
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment