Commit 56c957e6 authored by stefanwessel's avatar stefanwessel
Browse files

in runner_pt.cpp: corrected DMCL_GLOBAL_ACCEPTANCE_RATE ->...

in runner_pt.cpp: corrected  DMCL_GLOBAL_ACCEPTANCE_RATE -> MCL_GLOBAL_ACCEPTANCE_RATE; comment-out M_report output

git-svn-id: https://svn.rwth-aachen.de/repos/sw440870_load_leveller/trunk@45 36cca2a8-63f0-4188-8a56-663e3b0d1cf3
parent 282f9a62
......@@ -299,14 +299,16 @@ void runner_pt :: M_end_of_run()
void runner_pt :: M_report()
{
for(uint i = 0; i < pt_node_steps_done.size(); i ++) {
if (0) {
for(uint i = 0; i < pt_node_steps_done.size(); i ++) {
(*STATUS)
<< i+1 << "\t"
<< pt_node_steps_done[i] << "\t"
<< pt_node_mes_done[i] << "\t"
<< "\n";
}
(*STATUS) << "\n";
}
(*STATUS) << "\n";
}
......@@ -342,6 +344,7 @@ void runner_pt :: M_global_update()
#endif
++pt_moves;
//staggered version
// for(int i = 0; i < world_size-2 - (((world_size%2) && (pt_moves%2)) ? 1 : 0); i+=2) {
// int a=i;
......@@ -350,12 +353,12 @@ void runner_pt :: M_global_update()
// a=i+1;
// b=i+2;
// }
//
//original version
for(int i = 0; i < world_size-2; i ++) {
int a=i;
int b=i+1;
//
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";
......@@ -391,7 +394,7 @@ void runner_pt :: M_global_update()
histogram_down[pos]++;
#endif
}
#ifdef DMCL_GLOBAL_ACCEPTANCE_RATE
#ifdef MCL_GLOBAL_ACCEPTANCE_RATE
M_report_acc_ratio();
#endif
//(*STATUS) << my_rank << ": did global update"<< "\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