(<a href="../../../content/domain_decomposition/src/poisson_1d/poisson_1d.tar.gz">poisson_1d.tar.gz</a>)
codes as guides.</li>
<li>Use MPE or a pipe in the Python graphic code
- (<a href="../../../programming_strategies/src/plot_image.py">plot_image.py</a>)
+ (<a href="../../../src/plot_image/plot_image.py">plot_image.py</a>)
to display the solution.</li>
<li>Compare your solution (map image of $u(x,y)$) to the serial code
solution as a rough check of the code.</li>
<pre>
gcc poisson_2d.c -lm -o poisson_2d
-./poisson_2d N Nx Ny | ./plot_image.py -s Nx Ny -t "2d Poisson"
+./poisson_2d N Nx Ny | ./plot_image.py -s Nx,Ny -t "2d Poisson"
</pre>
<p>where <code>N</code>, <code>Nx</code> and <code>Ny</code> are the
(arbitrary) maximum number of iterations and number of grid points
(image size) respectively. Good numbers to use could be 10000, 300,
-300. We
-introduced <a href="../programming_strategies/src/plot_image.py">plot_image.py</a>
-in <a href="../programming_strategies/#CI">Programming Strategies:
-Color Images</a>.</p>
+300. We introduced <a
+href="../../src/plot_image/plot_image.py">plot_image.py</a> in <a
+href="../programming_strategies/#CI">Programming Strategies: Color
+Images</a>.</p>
<p>The code stops once good convergence (parameter <code>EPS</code>)
is obtained.</p>
<i>Numerical Receipes</i> for an optimum choice).</li>
<li>The code is written in the simplest possible way.</li>
<li>The code outputs the field values to pipe
- into <a href="../programming_strategies/src/plot_image.py">plot_image.py</a>
+ into <a href="../../src/plot_image/plot_image.py">plot_image.py</a>
for field display.</li>
</ul>
from which we can generate a movie.</p>
<p>The Python
-program <a href="src/display_frames_GTK.py">display_frames_GTK.py</a>
+program <a href="../../src/game_of_life/display_frames_GTK.py">display_frames_GTK.py</a>
accepts the image content for each frame in the movie. It uses the
same notation for each frame as that of the previously
-used <a href="../programming_strategies/src/plot_image.py">plot_image.py</a>
+used <a href="../../src/plot_image/plot_image.py">plot_image.py</a>
for single image. It loops over the frames until the end of stream, at
which point it crashes. The syntax to display the <em>Game of
Life</em> above is:</p>
range. For our purpose, this tool must read in a 2-dimensional array
containing the values of $f(x,y)$ on a 2-dimensional lattice and
produce the color image. The Python script <a
-href="../../src/plot_image.py">plot_image.py</a> does precisely this. It is
-based on <a href="http://matplotlib.sourceforge.net/">matplotlib</a>
-(the tutorials, user's guide and examples found in the matplotlib site
-are easier to read with some previous knowledge of <a
+href="../../src/plot_image/plot_image.py">plot_image.py</a> does
+precisely this. It is based on <a
+href="http://matplotlib.sourceforge.net/">matplotlib</a> (the
+tutorials, user's guide and examples found in the matplotlib site are
+easier to read with some previous knowledge of <a
href="http://www.python.org/">Python</a> and <a
href="http://numpy.scipy.org/">Numerical Python</a>).</p>
gcc poisson_2d.c -lm -o poisson_2d
-./poisson_2d N N_x N_y | plot_image.py -s N_x N_y -t "2d Poisson"
+./poisson_2d N N_x N_y | plot_image.py -s N_x,N_y -t "2d Poisson"
*/
gcc poisson_2d.c -lm -o poisson_2d
-./poisson_2d N N_x N_y | plot_image.py -s N_x N_y -t "2d Poisson"
+./poisson_2d N N_x N_y | plot_image.py -s N_x,N_y -t "2d Poisson"
*/