diff --git a/examples/PerturbedBox/perturbedBox.yml b/examples/PerturbedBox/perturbedBox.yml index 0aa107d4ff92f94be54b9562e3d30892f1a76d69..f9d2629c72f93b529bedc29c53a892ca2ca857f1 100644 --- a/examples/PerturbedBox/perturbedBox.yml +++ b/examples/PerturbedBox/perturbedBox.yml @@ -17,7 +17,7 @@ TimeIntegration: Snapshots: basename: uniformBox # Common part of the name of output files time_first: 0. # Time of the first output (in internal units) - delta_time: 0.01 # Time difference between consecutive outputs (in internal units) + delta_time: 1e-3 # Time difference between consecutive outputs (in internal units) # Parameters governing the conserved quantities statistics Statistics: diff --git a/examples/PerturbedBox/run.sh b/examples/PerturbedBox/run.sh new file mode 100755 index 0000000000000000000000000000000000000000..245fbd4a221ee6c23fc42f42ccbb498389fd5b4f --- /dev/null +++ b/examples/PerturbedBox/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Generate the initial conditions if they are not present. +if [ ! -e perturbedBox.hdf5 ] +then + echo "Generating initial conditions for the perturbed box example..." + python makeIC.py 50 +fi + +../swift -s -t 16 uniformBox.yml