#!/bin/bash # Generate the initial conditions if they are not present. if [ ! -e plummer.hdf5 ] then echo "Generating initial conditions..." python3 plummer.py plummer.dat 100000 python3 makeIC.py fi if [ ! -e photometry ] then echo "Fetching EAGLE photometry tables..." ../getEaglePhotometryTable.sh fi rm -rf output_*.hdf5 ../../../swift --self-gravity --stars --threads=1 params.yml 2>&1 | tee output.log python3 tidal_strengths.py output_0001.hdf5