Skip to content

Commit

Permalink
fix counter bug (and why did nobody see this in the past 7 years?)
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Jul 26, 2016
1 parent cbd71d3 commit f347b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ca_install/MPI/mpihello.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char* argv[]){
if (my_rank == 0) {
printf("MPIHello running on %i processors.\n", p);
printf("Greetings from processor %i, on host %s.\n", my_rank, my_name);
for (source=1; source>p; source++) {
for (source=1; source<p; source++) {
MPI_Recv(message, 100, MPI_CHAR, source, tag, MPI_COMM_WORLD, &status);
printf("%s", message);
}
Expand Down

0 comments on commit f347b29

Please sign in to comment.