[2377] | 1 | \documentclass{manual} |
---|
[2287] | 2 | |
---|
| 3 | |
---|
[2377] | 4 | \title{ANUGA Installation Guide} |
---|
| 5 | |
---|
[2287] | 6 | \author{Howard Silcock, Ole Nielsen, Duncan Gray, Jane Sexton} |
---|
| 7 | |
---|
[2377] | 8 | % Please at least include a long-lived email address; |
---|
| 9 | % the rest is at your discretion. |
---|
| 10 | \authoraddress{Geoscience Australia \\ |
---|
| 11 | Email: \email{ole.nielsen@ga.gov.au} |
---|
| 12 | } |
---|
[2287] | 13 | |
---|
[2377] | 14 | %Draft date |
---|
| 15 | \date{\today} % update before release! |
---|
[2422] | 16 | % Use an explicit date so that reformatting |
---|
| 17 | % doesn't cause a new date to be used. Setting |
---|
| 18 | % the date to \today can be used during draft |
---|
| 19 | % stages to make it easier to handle versions. |
---|
[2377] | 20 | |
---|
[2422] | 21 | \release{1.0} % release version; this is used to define the |
---|
| 22 | % \version macro |
---|
[2377] | 23 | |
---|
[2422] | 24 | \makeindex % tell \index to actually write the .idx file |
---|
| 25 | %\makemodindex % If this contains a lot of module sections. |
---|
[2377] | 26 | |
---|
| 27 | |
---|
| 28 | |
---|
[2287] | 29 | \begin{document} |
---|
| 30 | \maketitle |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
[2377] | 34 | % This makes the contents more accessible from the front page of the HTML. |
---|
| 35 | \ifhtml |
---|
| 36 | \chapter*{Front Matter\label{front}} |
---|
| 37 | \fi |
---|
[2287] | 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
[2377] | 42 | \chapter{Introduction} |
---|
[2287] | 43 | |
---|
[2377] | 44 | This document outlines the required software for installing the Anuga toolbox. |
---|
| 45 | All components are licensed as open source and readily available from the net. |
---|
[2422] | 46 | |
---|
| 47 | |
---|
[2377] | 48 | \section{Pre-requisites} |
---|
| 49 | |
---|
[2287] | 50 | The Anuga software core (pyvolution, pmesh, least\_squares, ...) depends on the following: |
---|
| 51 | |
---|
[2422] | 52 | \begin{itemize} |
---|
[3792] | 53 | \item python 2.3 or later \url{http://www.python.org}. Note, the |
---|
| 54 | dll python2X.dll is needed to compile ANUGA, but is not |
---|
| 55 | automatically added for versions 2.4 and above. Install it into the |
---|
| 56 | python2X directory, if you need it. |
---|
[3490] | 57 | \item python-numeric for Linux. It's called Numeric in Windows. |
---|
| 58 | \item python-dev (Interestingly, numeric seems to be installed as |
---|
| 59 | well) for Linux. This is not necessary for Windows. |
---|
| 60 | \item python-scientific (to provide python-netcdf) for Linux. It's |
---|
| 61 | called ScientificPython in Windows. |
---|
| 62 | \item NETCDF. Extract the file netcdf.dll, and put in C://Windows//System32// (Windows XP) or C://WINNT//System32 (Windows NT or 2000). |
---|
| 63 | |
---|
| 64 | \item A C compiler such as gcc (from GNU in case of Linux and MinGW |
---|
| 65 | in case of Windows) |
---|
| 66 | \item scons for automatically compiling the distribution. |
---|
[2422] | 67 | \end{itemize} |
---|
| 68 | |
---|
| 69 | |
---|
[2377] | 70 | \section{Recommended software} |
---|
[2287] | 71 | |
---|
[2422] | 72 | \begin{itemize} |
---|
[2287] | 73 | \item psyco \url{http://psyco.sourceforge.net/index.html} |
---|
| 74 | \item visual python \url{http://vpython.org} |
---|
[2934] | 75 | \item matplotlib (pylab) for quality 2d plotting (moving towards mandatory requirement) |
---|
[2788] | 76 | \item VTK \url{http://mayavi.sourceforge.net/dwnld/vtk/win32/} |
---|
| 77 | \end{itemize} |
---|
[2287] | 78 | |
---|
| 79 | |
---|
| 80 | |
---|
[2377] | 81 | \section{System configuration} |
---|
[2287] | 82 | |
---|
| 83 | |
---|
[2422] | 84 | The system path on Win32 architectures must contain the directories |
---|
| 85 | \begin{verbatim} |
---|
| 86 | PATH=C:\Python23;C:\MinGW\bin;C:\Program Files\swollen |
---|
| 87 | \end{verbatim} |
---|
[2287] | 88 | (similar for Linux....) |
---|
| 89 | |
---|
[3816] | 90 | If anuga is not installed in the python site-packages directory the root directory for all anuga/inundation modules must be on |
---|
[2377] | 91 | the pythonpath, e.g.\ |
---|
[2422] | 92 | \begin{verbatim} |
---|
[3816] | 93 | PYTHONPATH=C:\anuga_core\source |
---|
[2422] | 94 | \end{verbatim} |
---|
[2287] | 95 | |
---|
| 96 | |
---|
| 97 | |
---|
[2422] | 98 | |
---|
| 99 | |
---|
[3816] | 100 | \section{Installation of source zip file} |
---|
| 101 | Get a source zip file, for example, anuga_source_3807.zip, and expand |
---|
| 102 | it in the python site-packages directory. |
---|
[2287] | 103 | |
---|
[2377] | 104 | In the ANUGA root directory, run the compilation script: |
---|
[2287] | 105 | {\small \begin{verbatim} |
---|
[3816] | 106 | python compile_all.py |
---|
[2287] | 107 | \end{verbatim}} |
---|
| 108 | |
---|
[3822] | 109 | %or (in anuga_core) |
---|
| 110 | % scons install |
---|
| 111 | % scons -c #(clean) |
---|
[2287] | 112 | |
---|
| 113 | |
---|
| 114 | \subsection{Testing} |
---|
| 115 | |
---|
[2377] | 116 | In the ANUGA root directory, run the test suite: |
---|
[2287] | 117 | {\small \begin{verbatim} |
---|
| 118 | python test_all.py |
---|
| 119 | \end{verbatim}} |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | \section{Other stuff to be included} |
---|
| 125 | |
---|
[2422] | 126 | \begin{verbatim} |
---|
[2377] | 127 | Install tortoise from downloads (ITs didn't integrate wih explorer). |
---|
[2287] | 128 | In settings set proxy to proxy.agso.gov.au 8080 |
---|
| 129 | |
---|
| 130 | |
---|
| 131 | Install swollen from latest distro (in subversion) |
---|
| 132 | |
---|
| 133 | |
---|
[2422] | 134 | \end{verbatim} |
---|
[2287] | 135 | |
---|
| 136 | |
---|
| 137 | |
---|
[2377] | 138 | |
---|
[2422] | 139 | |
---|
[2287] | 140 | \end{document} |
---|