#!/bin/bash # Generate the initial conditions if they are not present. if [ ! -e Hernquist.hdf5 ] then echo "Generate initial conditions for radial orbits" if command -v python3 &>/dev/null; then python3 makeIC.py else python3 makeIC.py fi fi rm -rf hernquist_*.hdf5 ../../../swift --external-gravity --threads=1 hernquist.yml 2>&1 | tee output.log echo "Make plots of the radially free falling particles" if command -v python3 &>/dev/null; then python3 plotprog.py else python3 plotprog.py fi