Saturday, April 13, 2019

SWIFT Astrophysics Simulator on a fresh Debian 9.8 Installation

SWIFT Astrophysics Simulator on a fresh Debian 9.8 Installation

  1. Install dependencies
    apt install git make autoconf libtool libhdf5-openmpi-dev libgsl-dev libfftw3-dev python-pip textlive texlive-latex-extra dvipng
    pip install h5py matplotlib
    
  2. Get the project
    git clone https://github.com/swiftsim/swiftsim.git
    
  3. Build the project
    cd swiftsim
    ./autogen.sh
    ./configure
    make
    
  4. Run an example
    cd examples/HydroTests/SodShock_3D
    ./getGlass.sh
    python makeIC.py
    ../swift --hydro --threads=4 sodShock.yml
    python plotSolution.py 1