fill in pixel_num in taskVals[0] properly

git-svn-id: svn://anubis/gvsu@327 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-12-07 23:26:59 +00:00
parent 08b1aca672
commit f4a45fe3a5

View File

@ -302,6 +302,7 @@ void draw(int rank, int world_size, int nprocs, int width, int height,
taskVals[i + 1] = computation->compute(x_virt, y_virt);
}
/* send the computed pixel data to the master node */
taskVals[0] = pixel_num;
MPI_Send(taskVals, TASK_SIZE + 1, MPI_INT, 0, 0, MPI_COMM_WORLD);
}
}