I\'m trying to write a function in C where every processor prints it\'s own data. Here is what i have:
void print_mesh(int p,int myid,int** U0,int X,int Y){
For debugging and development purposes, you can run each process in a separate terminal, so they print in their own terminal:
mpirun -np n xterm -hold -e ./output
n: number of processors -hold: keeps xterm on after the program is done. output: name of MPI executable
n
-hold
output