# Diff of /trunk/doc/user/firststep.tex

revision 2881 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2923 by jfenwick, Thu Feb 4 04:05:36 2010 UTC
# Line 157  For more details we refer the reader to Line 157  For more details we refer the reader to
157
158  The \escript solver we want to use to solve this problem is embedded into the python interpreter language. So you can solve the problem interactively but you will learn quickly  The \escript solver we want to use to solve this problem is embedded into the python interpreter language. So you can solve the problem interactively but you will learn quickly
159  that is more efficient to use scripts which you can edit with your favorite editor.  that is more efficient to use scripts which you can edit with your favorite editor.
160  To enter the escript environment you use \program{escript} command\footnote{\program{escript} is not available under Windows yet. If you run under windows you can just use the  To enter the escript environment you use \program{run-escript} command\footnote{\program{run-escript} is not available under Windows yet. If you run under windows you can just use the
161  \program{python} command and the \env{OMP_NUM_THREADS} environment variable to control the number  \program{python} command and the \env{OMP_NUM_THREADS} environment variable to control the number
163  \begin{verbatim}  \begin{verbatim}
164    escript    run-escript
165  \end{verbatim}  \end{verbatim}
166  which will pass you on to the python prompt  which will pass you on to the python prompt
167  \begin{verbatim}  \begin{verbatim}
# Line 401  matplotlib.pyplot.savefig("u.png") Line 401  matplotlib.pyplot.savefig("u.png")
401  The entire code is available as \file{poisson\hackscore matplotlib.py} in the \ExampleDirectory.  The entire code is available as \file{poisson\hackscore matplotlib.py} in the \ExampleDirectory.
402  You can run the script using the {\it escript} environment  You can run the script using the {\it escript} environment
403  \begin{verbatim}  \begin{verbatim}
404    escript poisson_matplotlib.py    run-escript poisson_matplotlib.py
405  \end{verbatim}  \end{verbatim}
406  This will create the \file{u.png}, see Figure~\fig{fig:FirstSteps.3b}.  This will create the \file{u.png}, see Figure~\fig{fig:FirstSteps.3b}.
407  For details on the usage of the \MATPLOTLIB module we refer to the documentation~\cite{matplotlib}.  For details on the usage of the \MATPLOTLIB module we refer to the documentation~\cite{matplotlib}.
# Line 448  The entire code is available as \file{po Line 448  The entire code is available as \file{po
448  You can run the script using the {\it escript} environment  You can run the script using the {\it escript} environment
449  and visualize the solution using \mayavi:  and visualize the solution using \mayavi:
450  \begin{verbatim}  \begin{verbatim}
451    escript poisson\hackscore VTK.py    run-escript poisson\hackscore VTK.py
452    mayavi2 -d u.xml -m SurfaceMap    mayavi2 -d u.xml -m SurfaceMap
453  \end{verbatim}  \end{verbatim}
454  The result is shown in Figure~\fig{fig:FirstSteps.3}.  The result is shown in Figure~\fig{fig:FirstSteps.3}.

Legend:
 Removed from v.2881 changed lines Added in v.2923