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.
abstract distributed memory<br />
array x0(0,n), x1(0,n);<br />
for int m = 1 to c {<br />
for_parallel int i0 = 0 to n step n0 {<br />
array y0(i0-1,i0+n0), y1(i0,i0+n0-1);<br />
y0 = x0;<br />
for_parallel int i = i0 to i0+n0-1 {<br />
y1(i) = if (i==0) 0.0<br />
else if (i==n) 0.0<br />
}<br />
}<br />
x1 = y1;<br />
}<br />
swap(x1, x0);<br />
else 1.0 – y0(i) + 0.5 * ( y0(i-1)+y0(i+1) );<br />
eliminate x0, x1<br />
message passing at<br />
y0=x0<br />
eliminate i0 loop