| 32 | | === Pre Ubuntu 12.04 === |
| 33 | | Also need to install the following packages |
| 34 | | |
| 35 | | {{{ |
| 36 | | sudo apt-get install python-argparse |
| 37 | | sudo apt-get install python-profiler |
| 38 | | }}} |
| 39 | | |
| 40 | | === Other Python Packages === |
| 41 | | |
| 42 | | We also need a few other python packages. We can use {{{pip}}} to install these via the command |
| 43 | | |
| 44 | | {{{ |
| 45 | | sudo pip install nose netCDF4 pyproj |
| 46 | | }}} |
| 47 | | |
| 48 | | === Parallel support === |
| 49 | | |
| 50 | | On {{{Linux}}} it is easy to setup parallel support. You can use either {{{mpich2}}} or {{{openmpi}}}. |
| 51 | | |
| 52 | | Here is the command to install {{{mpich2}}} support |
| 53 | | |
| 54 | | {{{ |
| 55 | | sudo apt-get install mpich2 |
| 56 | | }}} |
| 57 | | |
| 58 | | We interface {{{mpi}}} with {{{Python}}} via the {{{pypar}}} package. |
| 59 | | |
| 60 | | Download {{{pypar}}} with |
| 61 | | |
| 62 | | {{{ |
| 63 | | svn checkout https://github.com/daleroberts/pypar |
| 64 | | }}} |
| 65 | | |
| 66 | | and then change into the {{{pypar}}} directory and install, via |
| 67 | | {{{ |
| 68 | | pushd pypar |
| 69 | | python setup.py build |
| 70 | | sudo python setup.py install |
| 71 | | popd |
| 72 | | }}} |
| 73 | | |
| 74 | | == Installing anuga == |
| 75 | | |
| 76 | | Now we should have installed all the packages necessary to run anuga. |
| 77 | | So now to actually installing anuga. |
| 78 | | |
| 79 | | === Checkout anuga via svn === |
| 80 | | |
| 81 | | First we need to get the actual anuga source code. We do this by checking out the anuga |
| 82 | | repository using subversion. |
| 83 | | |
| 84 | | From your home directory run: |
| 85 | | |
| 86 | | {{{ |
| 87 | | svn checkout https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core anuga_core |
| 88 | | }}} |
| 89 | | |
| 90 | | This should produce an anuga_core directory in your home directory |
| 91 | | |
| 92 | | |
| 93 | | === Compile ANUGA Code === |
| 94 | | |
| 95 | | Now go to the directory anuga_core and install via: |
| 96 | | |
| 97 | | {{{ |
| 98 | | python setup.py build |
| 99 | | sudo python setup.py install |
| 100 | | }}} |
| 101 | | |
| 102 | | === Run Unit tests === |
| 103 | | |
| 104 | | From the anuga_core directory run the unit tests via: |
| | 29 | To check the installation run the unit tests via: |