ROOT, MPI_COMM_WORLD);
printf("number requiring max number of iterations: %d. (number of iterations: %d)\n",
global_result[0], global_result[1]);
Почему в итоге в строке [0] number requiring max number of iterations: 3. (number of iterations: 71) наисано 3,71
а не 6,1 ?
[0] number requiring max number of iterations: 3. (number of iterations: 71)
[1] LOCAL - max_iterations = 6 , number = 1
[1] LOCAL - max_iterations = 4 , number = 31
[1] LOCAL - max_iterations = 3 , number = 61
[1] LOCAL - max_iterations = 3 , number = 91
[2] LOCAL - max_iterations = 5 , number = 11
[2] LOCAL - max_iterations = 4 , number = 41
[2] LOCAL - max_iterations = 3 , number = 71
[3] LOCAL - max_iterations = 4 , number = 21
[3] LOCAL - max_iterations = 4 , number = 51
[3] LOCAL - max_iterations = 3 , number = 81
Хелпаните плиз
Обсуждают сегодня