diff --git a/examples/CosmoVolume/getIC.sh b/examples/CosmoVolume/getIC.sh old mode 100644 new mode 100755 diff --git a/examples/runs.sh b/examples/runs.sh old mode 100644 new mode 100755 index 48234cd8a4cb374c80f4980cca12b46e6283258e..04adb8431169b7b516f688db5601193ae9376feb --- a/examples/runs.sh +++ b/examples/runs.sh @@ -3,6 +3,30 @@ # Set some global stuff export OMP_WAIT_POLICY=PASSIVE +# Generate the initial conditions if they are not present. +if [ ! -e SodShock/sodShock.hdf5 ] +then + echo "Generating initial conditions for the SodShock example..." + cd SodShock + python makeIC.py + cd .. +fi +if [ ! -e SedovBlast/sedov.hdf5 ] +then + echo "Generating initial conditions for the SedovBlast example..." + cd SedovBlast/ + python makeIC_fcc.py + cd .. +fi +if [ ! -e CosmoVolume/cosmoVolume.hdf5 ] +then + echo "Downloading initial conditions for the CosmoVolume example..." + cd CosmoVolume + ./getIC.sh + cd .. +fi + + # Loop over number of cores for cpu in {1..32} do