Running amuse on the Cartesius supercomputer

Cartesius is a bullx system, a clustered SMP (Symmetric Multiprocessing) system built by Bull. For more information, visit


Make a directory for all work files etc.

mkdir amuse

cd amuse

Get the latest amuse release


To get an svn version of AMUSE (if you have an svn account):

module load subversion

svn co amuse-svn

For a release download, unzip and untar the release

gzip -d amuse-8.1.tar.gz

tar -xvf amuse-8.1.tar

Create a file called 'setdev' and put this text in it:


module load gsl
module load fftw3/gnu
module load hdf5

export AMUSEROOT=/home/<username>/<directory>

export PYTHONPATH=${PYTHONPATH}:${AMUSEROOT}/amuse-8.1/src
export PYTHONPATH=${AMUSEROOT}/prerequisites/lib/python2.6/site-packages/:${PYTHONPATH}

export PREFIX=${AMUSEROOT}/prerequisites/
export PATH=${PREFIX}/bin:${PATH}

export FC=gfortran
export F77=gfortran
export FORTRAN=gfortran
export CC=gcc
export CXX=g++

export MPIFC=mpif90
export MPICC=mpicc
export MPICXX=mpicxx

Take care to replace <username> with your name and <directory> with the directory containing the workfiles ('amuse' if you follow all steps to the letter). Also take car to replace amuse-8.1 with amuse-svn if you ran the svn checkout line.

Before installing any packages or building amuse do:

source setdev

mkdir $PREFIX

then, to install Python and the rest of the prerequisites:

cd <amuse-path>/doc/install
./ download
./ install

Install AMUSE

./configure --with-gsl-prefix=/hpc/sw/gsl-1.15-gnu

make clean



You should be ready to go now. Run the nosetests to check whether AMUSE and all its community codes work properly. For information about how to run jobs on Cartesius, visit