Skip to content
Snippets Groups Projects

Minor change to EAGLE_ICs/*/run.sh

Merged Josh Borrow requested to merge EAGLE-run.sh-update into master
3 files
+ 89
4
Compare changes
  • Side-by-side
  • Inline
Files
3
#!/bin/bash
# Generate the initial conditions if they are not present.
# Generate the initial conditions if they are not present.
if [ ! -e EAGLE_L0012N0188_ICs.hdf5 ]
then
echo "Fetching initial conditions for the EAGLE 12Mpc example..."
./getIC.sh
fi
../../swift --cosmology --hydro --self-gravity --stars --black-holes --cooling --star-formation --feedback --fof --threads=16 eagle_12.yml 2>&1 | tee output.log
# Grab the cooling and yield tables if they are not present.
if [ ! -e yieldtables ]
then
echo "Fetching EAGLE yield tables..."
../getEagleYieldtable.sh
fi
if [ ! -e coolingtables ]
then
echo "Fetching EAGLE cooling tables..."
../getEagleCoolingTable.sh
fi
# The following run-time options are broken down by line as:
# Basic run-time options
# Create and run with stars
# Radiative options - run with cooling and stellar feedback
# Run with the time-step limiter required to capture feedback
# Run with black holes - fof is needed for the seeding
# Threading options - run with threads and pinning (latter not required but improves performance)
# The corresponding parameter file for this run
../../swift \
--cosmology --hydro --self-gravity \
--stars --star-formation \
--cooling --feedback \
--limiter \
--black-holes --fof \
--threads=16 --pin \
eagle_12.yml
Loading