#!/bin/bash # Generate the initial conditions if they are not present. if [ ! -e glassCube_32.hdf5 ] then echo "Fetching initial glass file for the Supernovae feedback example..." ./getGlass.sh fi if [ ! -e ics.hdf5 ] then echo "Generating initial conditions for the 3D stellar evolution example..." python3 makeIC.py fi # Get the Yield tables if [ ! -e yieldtables ] then echo "Fetching Yield tables..." ./getEagleYieldTable.sh fi if [ ! -e UV_dust1_CR1_G1_shield1.hdf5 ] then echo "Fetching cooling tables" ./getColibreCoolingTables.sh fi if [ ! -e Early_stellar_feedback.hdf5 ] then echo "Fetching feedback tables" ./getColibreFeedbackTables.sh fi ../../swift --external-gravity --cooling --feedback --stars --hydro --threads=4 stellar_winds.yml 2>&1 | tee output.log