Commit 24fb89ec authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Small refactorization + coverty fix

parent d209394f
...@@ -237,6 +237,10 @@ public: ...@@ -237,6 +237,10 @@ public:
// open the log file // open the log file
log.openLog(rank); log.openLog(rank);
// Initialize bar_req
bar_req = MPI_Request();
bar_stat = MPI_Status();
} }
#ifdef DEBUG #ifdef DEBUG
...@@ -940,15 +944,7 @@ public: ...@@ -940,15 +944,7 @@ public:
// MPI error get the message and abort MPI // MPI error get the message and abort MPI
if (err != MPI_SUCCESS) if (err != MPI_SUCCESS)
{
char * error_msg = NULL;
int len;
MPI_Error_string(err,error_msg,&len);
std::cerr << "Error MPI rank " << rank << ": " << error_msg << "\n";
MPI_Abort(MPI_COMM_WORLD,1); MPI_Abort(MPI_COMM_WORLD,1);
}
// Remove executed request and status // Remove executed request and status
req.clear(); req.clear();
......
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