Skip to content

Commit

Permalink
getting randomization to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
strassek committed Jul 26, 2011
1 parent 91ad215 commit 4ba7219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game_of_life/mpi/Life.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ void copy_bounds (struct life_t * life)
grid[i][ncols+1] = grid[i][1];
grid[i][0] = grid[i][ncols];
}

}
// copy corners
grid[0][0] = grid[nrows][0];
grid[nrows+1][0] = grid[1][0];
grid[0][ncols+1] = grid[nrows][ncols+1];
grid[nrows+1][ncols+1] = grid[1][ncols+1];
}


// copy top and bottom
for (i = 1; i <= ncols; i++) {
Expand Down

0 comments on commit 4ba7219

Please sign in to comment.