[siegelj@voyager solidcode]$ mpirun -np 4 pirulesfaster
Which rule do you want to use? 0= done 1=rectangular rule 2=mid point rule 3=simpsons rule (choose intervals/process(or)s to be even) 2 Please input the number of intervals(0 quits). 10000000 wall clock begin = 0.659643pi is approximately 3.1415938060603050, Relative Error is 3.66842757e-05 wall clock time = 0.073868
Process number 0 on processor voyager.umsl.edu Which rule do you want to use? 0= done 1=rectangular rule 2=mid point rule 3=simpsons rule 2 Please input the number of intervals(0 quits). 10000000
[siegelj@voyager solidcode]$ mpirun -np 4 pirulespi is approximately 3.1415926535897607, Relative Error is -1.03191330e-12 wall clock time = 0.163891
Please input the number of intervals(0 quits). 10000000
[siegelj@voyager solidcode]$ mpicc -O3 -o pirules pirules.c [siegelj@voyager solidcode]$ mpicc -O3 -o pirulesfaster pirulesfaster.c [siegelj@voyager solidcode]$ mpirun -np 4 pirulespi is approximately 3.1415926535897607, Relative Error is -1.03191330e-12 wall clock time = 0.119298
Please input the number of intervals(0 quits). 10000000
[siegelj@voyager solidcode]$ mpirun -np 4 pirulesfasterpi is approximately 3.1415938060603383, Relative Error is 3.66842768e-05 wall clock time = 0.037276