From c4e17fad22c8fd8db4e5f4dbec06ebafbdd3e87e Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Thu, 28 Jul 2016 13:05:35 +0100 Subject: [PATCH] Run script for the perturbed box example --- examples/PerturbedBox/perturbedBox.yml | 2 +- examples/PerturbedBox/run.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 examples/PerturbedBox/run.sh diff --git a/examples/PerturbedBox/perturbedBox.yml b/examples/PerturbedBox/perturbedBox.yml index 0aa107d4ff..f9d2629c72 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 0000000000..245fbd4a22 --- /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 -- GitLab