Commit dac7eb52 authored by Christoph Gerum's avatar Christoph Gerum

Format of mpi pi example

parent 2a0d58d4
......@@ -15,7 +15,6 @@ int main (int argc, char **argv)
MPI_Comm_size(MPI_COMM_WORLD, &num_procs);
step = 1.0/(double) num_steps;
for (i=myid; i< num_steps; i=i+num_procs) {
x = (i+0.5)*step;
sum += 4.0/(1.0+x*x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment