- for(i=0;i<slaves_count;i++)
- for(j=i+1;j<slaves_count;j++)
- communication_amount[i*slaves_count+j]=task_comm_size;
+ for (i = 0; i < slaves_count; i++)
+ computation_amount[i] = task_comp_size;
+
+ for (i = 0; i < slaves_count; i++)
+ for (j = i + 1; j < slaves_count; j++)
+ communication_amount[i * slaves_count + j] = task_comm_size;