Commit 15acf128 authored by incardon's avatar incardon

Removing warnings

parent ea6bd35b
......@@ -461,7 +461,10 @@ public:
if (reached_bar_req == false)
{
int flag = false;
MPI_SAFE_CALL(MPI_Testall(req.size(),&req.get(0),&flag,MPI_STATUSES_IGNORE));
if (req.size() != 0)
{MPI_SAFE_CALL(MPI_Testall(req.size(),&req.get(0),&flag,MPI_STATUSES_IGNORE));}
else
flag = true;
// If all send has been completed
if (flag == true)
......
......@@ -30,9 +30,9 @@ void * msg_alloc(size_t msg_i ,size_t total_msg, size_t total_p, size_t i,size_t
openfpm::vector<openfpm::vector<unsigned char>> * v = static_cast<openfpm::vector<openfpm::vector<unsigned char>> *>(ptr);
if (global_v_cluster->getProcessingUnits() <= 8)
if (totp_check) BOOST_REQUIRE_EQUAL(total_p,global_v_cluster->getProcessingUnits()-1);
{if (totp_check) BOOST_REQUIRE_EQUAL(total_p,global_v_cluster->getProcessingUnits()-1);}
else
if (totp_check) BOOST_REQUIRE_EQUAL(total_p,8);
{if (totp_check) BOOST_REQUIRE_EQUAL(total_p,8);}
BOOST_REQUIRE_EQUAL(msg_i, global_step);
v->get(i).resize(msg_i);
......
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