Commit 2db35717 authored by incardon's avatar incardon

fixing long range communication

parent ed4b2d67
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define VERBOSE_TEST #define VERBOSE_TEST
#define N_TRY 4 #define N_TRY 2
#define N_LOOP 67108864 #define N_LOOP 67108864
#define BUFF_STEP 524288 #define BUFF_STEP 524288
...@@ -413,7 +413,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv) ...@@ -413,7 +413,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
// Check the message // Check the message
for (size_t i = 0 ; i < 8 && i < n_proc ; i++) for (size_t 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 + vcl.getProcessUnitID()) % n_proc;
if (p_id < 0) if (p_id < 0)
p_id += n_proc; p_id += n_proc;
else 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