#include #include #include #include "mpi.h" /* This example handles a 12 x 12 mesh, on 4 processors only. */ //#define maxn 12 #define maxn 8 int const ROWS=12; int const COLS=12; char const LIFE='o'; char const DEATH='.'; struct individual { char condition; int neighbors; } ; void readFile(char filename[], struct individual board[ROWS][COLS]) { int row, col; char eoln; FILE *infile; infile=fopen(filename, "r"); for(row=0; row