time mpirun -np 4 a.out
100 3.12876... .004
. . .
100000 3.14155... .000013
In order to graph this data, start gnuplot and type:
plot 'data.txt' using 1:3 with lines
This plots the data in the file data.txt using the 1st and 3rd columns of data.
2 .05
. . .
16 .001
In order to graph this data, start gnuplot and type:
plot 'data.txt' using 1:2 with lines
This plots the data in the file data.txt using the 1st and 2nd columns of data.