#!/bin/bash # Generate the initial conditions if they are not present. if [ ! -e small_cosmo_volume.hdf5 ] then echo "Fetching initial conditions for the small cosmological volume example..." ./getIC.sh fi # Run SWIFT ../../../swift --cosmology --hydro --self-gravity --velociraptor --threads=8 small_cosmo_volume.yml 2>&1 | tee output.log echo "Make a plot of the HMF" if command -v python3 &>/dev/null; then python3 haloevol.py else python3 haloevol.py fi