GithubHelp home page GithubHelp logo

brunosanchez / amuse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amusecode/amuse

0.0 2.0 0.0 231.71 MB

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

Home Page: http://www.amusecode.org

Makefile 0.41% M4 0.14% Shell 0.16% Fortran 15.22% AMPL 38.82% Mathematica 0.25% Roff 0.04% Python 9.80% C 26.66% Cuda 1.10% C++ 6.20% Java 0.54% GLSL 0.03% Gnuplot 0.01% Prolog 0.06% IDL 0.38% MATLAB 0.04% Objective-C 0.09% Pascal 0.01% CMake 0.05%

amuse's Introduction

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:

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:

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/prerequisites
  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, or if you encounter problems with NetCDF (optional dependency) you may need to set also:

     ```bash
     export LIBRARY_PATH=${PREFIX}/lib:${LIBRARY_PATH}
     export CPATH=${PREFIX}/include:${CPATH}
     ```
    
  3. Download and install python

    cd doc/install
    ./install-python.sh
  4. 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

amuse's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.