run.sh 482 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

 # Generate the initial conditions if they are not present.
if [ ! -e glassCube_32.hdf5 ]
then
    echo "Fetching initial glass file for the SmoothedMetallicity example..."
    ./getGlass.sh
fi
if [ ! -e smoothed_metallicity.hdf5 ]
then
    echo "Generating initial conditions for the SmoothedMetallicity example..."
    python makeIC.py
fi

# Run SWIFT
16
../swift -n 1 -s -t 4 smoothed_metallicity.yml 2>&1 | tee output.log
17
18

# Plot the solution
19
python plotSolution.py 1