#!/bin/bash # make run.sh fail if a subcommand fails set -e if [ ! -e dSph_core.hdf5 ] then echo "Fetching initial conditions to run the example..." wget http://virgodb.cosma.dur.ac.uk/swift-webstorage/ICs/IsolateddSph/dSph_core.hdf5 fi printf "Running simulation..." ../../../swift --stars --self-gravity --threads=14 params.yml 2>&1 | tee output.log