Commit 6ba41e3e authored by incardon's avatar incardon

Fixing test non power of 2 number of processors

parent 6cf4290e
......@@ -401,7 +401,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
// The pattern is not really random preallocate the receive buffer
for (size_t i = 0 ; i < 8 && i < n_proc ; i++)
{
long int p_id = (- (i+1) * ps + (long int)vcl.getProcessUnitID()) % n_proc;
long int p_id = (- (i+1) * ps + (long int)vcl.getProcessUnitID());
if (p_id < 0)
p_id += n_proc;
else
......@@ -435,7 +435,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
// Check the message
for (long int i = 0 ; i < 8 && i < n_proc ; i++)
{
long int p_id = (- (i+1) * ps + (long int)vcl.getProcessUnitID()) % n_proc;
long int p_id = (- (i+1) * ps + (long int)vcl.getProcessUnitID());
if (p_id < 0)
p_id += n_proc;
else
......
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