slides - Friedrich-Schiller-Universität Jena
slides - Friedrich-Schiller-Universität Jena
slides - Friedrich-Schiller-Universität Jena
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
translation to array style<br />
add types, declarations<br />
recursive to iterative<br />
detect loop parallelism<br />
array x0(0,n), x1(0,n);<br />
for int m = 1 to c {<br />
for_parallel int i = 0 to n {<br />
x1(i) = if (i==0) 0.0<br />
else if (i==n) 0.0<br />
else 1.0 – x0(i) + 0.5 * ( x0(i-1)+x0(i+1) );<br />
}<br />
swap(x1, x0);<br />
}