Commit 18d3f88e authored by stefanwessel's avatar stefanwessel
Browse files

git-svn-id: https://svn.rwth-aachen.de/repos/sw440870_load_leveller/trunk@49 36cca2a8-63f0-4188-8a56-663e3b0d1cf3
parent 3b2f8bd3
......@@ -345,6 +345,7 @@ void runner_pt :: M_global_update()
++pt_moves;
#ifdef MCL_PT_STAGGERED
//staggered version
for(int i = 0; i < world_size-2 - (((world_size%2) && (pt_moves%2)) ? 1 : 0); i+=2) {
int a=i;
......@@ -353,12 +354,12 @@ void runner_pt :: M_global_update()
a=i+1;
b=i+2;
}
#else
//original version
// for(int i = 0; i < world_size-2; i ++) {
// int a=i;
// int b=i+1;
for(int i = 0; i < world_size-2; i ++) {
int a=i;
int b=i+1;
#endif
MPI_Send(&a, 1, MPI_INT, pt_node_order[b]+1, T_PARTNER, MPI_COMM_WORLD);
MPI_Send(&b , 1, MPI_INT, pt_node_order[a]+1, T_PARTNER, MPI_COMM_WORLD);
//cerr<<"Send call to "<<pt_node_order[b]+1<<" and " << pt_node_order[a]+1<<"\n";
......
Supports Markdown
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