Skip to content
/ amuse Public
forked from amusecode/amuse

Astrophysical Multipurpose Software Environment. This is the main repository for AMUSE

Notifications You must be signed in to change notification settings

spzwart/amuse

 
 

Repository files navigation

This directory contains the AMUSE software. With AMUSE you can write scripts to simulate astrophysical problems in different domains.

The documentation and the software can be found at:

http://www.amusecode.org

Getting Started

To build amuse you need a working build environment and install some prerequisites. This document contains the quick install instructions, if these fail please look at the detailed descriptions of the installation procedure in the documents in the 'doc/install' directory.

Compilers

To build AMUSE from source you need to have a working build environment. The AMUSE build system needs a C++ and a fortan 90 compiler. Please check first if you have a working build environment on your system.

In Ubuntu you can setup the environment with (as root):

apt-get install build-essential curl g++ gfortran gettext zlib1g-dev

In Fedora you can setup the environment with (as root)::

yum groupinstall "Development Tools" "Development Libraries"

In OS X you can install homebrew or macports package managers (both need the Apple Developer Tools). If you do not want to use any of these package managers you will need to install a fortran compiler as the Apple Developer Tools do not include a fortran compiler, you can find one at:

http://hpc.sourceforge.net/

Installing Prerequisites

This document describes installation of the pre-requisite software packages to a user directory. If you have a recent Ubuntu or Fedora distribution you can follow the installation instructions in doc/install/howto-install-prerequisites.txt to install the packages as part of the system.

  1. Make a prerequisite software directory (can be set to any directory)

     mkdir ~/amuse/prerequsites
    
  2. Set the PREFIX, PATH and LD_LIBRARY_PATH environement variables

     export PREFIX=~/amuse/prerequisites
     export PATH=${PREFIX}/bin:${PATH}
     export LD_LIBRARY_PATH=${PREFIX}/lib:${LD_LIBRARY_PATH}
    

2b. If you have ifort and/or icc, you need to also set:

    export LIBRARY_PATH=${PREFIX}/lib:${LIBRARY_PATH}
  1. Download and install python

     cd doc/install
     ./install-python.sh
    
  2. Download and install the other pre-requisites (script is also in the doc/install directory)

     ./install.py install
    

Set Environment

You can set the the PREFIX, PATH and LD_LIBRARY_PATH environment variables in you bashrc file. Please make sure the ${PREFIX}/bin directory is first in the path.

In bash, you can extend your .bashrc file with:

export PREFIX=~/amuse/prerequisites
export PATH=${PREFIX}/bin:${PATH}
export LD_LIBRARY_PATH=${PREFIX}/lib:${LD_LIBRARY_PATH}

Building AMUSE

All modules can be build with a configure and make command. Start make from the main amuse directory (directory this README file lives in). The main task of the configure script is to check if the prerequisite packages have been installed.

  1. Configure the source code

     ./configure 
    
  2. Build the code with make

     make 
    

Running the tests

AMUSE comes with a large set of tests, most can be run automatically. To run these tests start the nosetests command from the main amuse directory (directory this README file lives in).

To run these tests do:

  1. Run the automatic tests

     nosetests -v
    

About

Astrophysical Multipurpose Software Environment. This is the main repository for AMUSE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • AMPL 39.2%
  • C 26.4%
  • Fortran 15.2%
  • Python 9.3%
  • C++ 6.0%
  • Cuda 1.0%
  • Other 2.9%