Commit 24fe4273 authored by incardon's avatar incardon

Fixing long communication

parent 72fa6626
......@@ -87,7 +87,7 @@ then
else
echo "Compiling general"
sh ./autogen.sh\n
sh ./autogen.sh
sh ./configure CXX=mpic++
make
......
......@@ -360,7 +360,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
{
global_step = j;
// Processor step
size_t ps = n_proc / (8 + 1);
long int ps = n_proc / (8 + 1);
// send message
openfpm::vector<openfpm::vector<unsigned char>> message;
......@@ -411,9 +411,9 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
#endif
// Check the message
for (size_t i = 0 ; i < 8 && i < n_proc ; i++)
for (long int i = 0 ; i < 8 && i < n_proc ; i++)
{
long int p_id = (- (i+1) * ps + vcl.getProcessUnitID()) % n_proc;
long int p_id = (- (i+1) * ps + (long int)vcl.getProcessUnitID()) % n_proc;
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