From 4b9b58d1698644000d79fcfcf128aa040927f19f Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Sat, 5 Nov 2016 16:34:41 +0000
Subject: [PATCH] Added the gravity-only Isothermal potential test case to the
 tarball target

---
 examples/IsothermalPotential/{GravityOnly => }/README       | 0
 .../IsothermalPotential/{GravityOnly => }/isothermal.yml    | 0
 examples/IsothermalPotential/{GravityOnly => }/makeIC.py    | 6 +++---
 examples/IsothermalPotential/{GravityOnly => }/run.sh       | 2 +-
 examples/IsothermalPotential/{GravityOnly => }/test.pro     | 0
 examples/Makefile.am                                        | 1 +
 6 files changed, 5 insertions(+), 4 deletions(-)
 rename examples/IsothermalPotential/{GravityOnly => }/README (100%)
 rename examples/IsothermalPotential/{GravityOnly => }/isothermal.yml (100%)
 rename examples/IsothermalPotential/{GravityOnly => }/makeIC.py (97%)
 rename examples/IsothermalPotential/{GravityOnly => }/run.sh (79%)
 rename examples/IsothermalPotential/{GravityOnly => }/test.pro (100%)

diff --git a/examples/IsothermalPotential/GravityOnly/README b/examples/IsothermalPotential/README
similarity index 100%
rename from examples/IsothermalPotential/GravityOnly/README
rename to examples/IsothermalPotential/README
diff --git a/examples/IsothermalPotential/GravityOnly/isothermal.yml b/examples/IsothermalPotential/isothermal.yml
similarity index 100%
rename from examples/IsothermalPotential/GravityOnly/isothermal.yml
rename to examples/IsothermalPotential/isothermal.yml
diff --git a/examples/IsothermalPotential/GravityOnly/makeIC.py b/examples/IsothermalPotential/makeIC.py
similarity index 97%
rename from examples/IsothermalPotential/GravityOnly/makeIC.py
rename to examples/IsothermalPotential/makeIC.py
index 07993f19d4..976119f0a3 100644
--- a/examples/IsothermalPotential/GravityOnly/makeIC.py
+++ b/examples/IsothermalPotential/makeIC.py
@@ -141,17 +141,17 @@ ds = grp1.create_dataset('Velocities', (numPart, 3), 'f')
 ds[()] = v
 v = numpy.zeros(1)
 
-m = numpy.full((numPart, ), mass)
+m = numpy.full((numPart, ), mass, dtype='f')
 ds = grp1.create_dataset('Masses', (numPart,), 'f')
 ds[()] = m
 m = numpy.zeros(1)
 
-h = numpy.full((numPart, ), 1.1255 * boxSize / L)
+h = numpy.full((numPart, ), 1.1255 * boxSize / L,  dtype='f')
 ds = grp1.create_dataset('SmoothingLength', (numPart,), 'f')
 ds[()] = h
 h = numpy.zeros(1)
 
-u = numpy.full((numPart, ), internalEnergy)
+u = numpy.full((numPart, ), internalEnergy,  dtype='f')
 ds = grp1.create_dataset('InternalEnergy', (numPart,), 'f')
 ds[()] = u
 u = numpy.zeros(1)
diff --git a/examples/IsothermalPotential/GravityOnly/run.sh b/examples/IsothermalPotential/run.sh
similarity index 79%
rename from examples/IsothermalPotential/GravityOnly/run.sh
rename to examples/IsothermalPotential/run.sh
index f6adfcecec..28a3cc0910 100755
--- a/examples/IsothermalPotential/GravityOnly/run.sh
+++ b/examples/IsothermalPotential/run.sh
@@ -7,4 +7,4 @@ then
     python makeIC.py 1000 1
 fi
 
-../../swift -g -t 2 isothermal.yml 2>&1 | tee output.log
+../swift -g -t 1 isothermal.yml 2>&1 | tee output.log
diff --git a/examples/IsothermalPotential/GravityOnly/test.pro b/examples/IsothermalPotential/test.pro
similarity index 100%
rename from examples/IsothermalPotential/GravityOnly/test.pro
rename to examples/IsothermalPotential/test.pro
diff --git a/examples/Makefile.am b/examples/Makefile.am
index e93fa34844..4da84788a4 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -67,6 +67,7 @@ EXTRA_DIST = BigCosmoVolume/makeIC.py \
 	     GreshoVortex_2D/getGlass.sh GreshoVortex_2D/gresho.yml GreshoVortex_2D/makeIC.py GreshoVortex_2D/plotSolution.py GreshoVortex_2D/run.sh \
 	     HydrostaticHalo/README HydrostaticHalo/hydrostatic.yml HydrostaticHalo/makeIC.py HydrostaticHalo/run.sh \
 	     HydrostaticHalo/density_profile.py HydrostaticHalo/velocity_profile.py HydrostaticHalo/internal_energy_profile.py HydrostaticHalo/test_energy_conservation.py \
+	     IsothermalPotential/README IsothermalPotential/run.sh IsothermalPotential/test.pro IsothermalPotential/isothermal.yml IsothermalPotential/makeIC.py \
 	     KelvinHelmholtz_2D/kelvinHelmholtz.yml KelvinHelmholtz_2D/makeIC.py KelvinHelmholtz_2D/plotSolution.py KelvinHelmholtz_2D/run.sh \
 	     MultiTypes/makeIC.py  MultiTypes/multiTypes.yml MultiTypes/run.sh \
 	     PerturbedBox_2D/makeIC.py PerturbedBox_2D/perturbedPlane.yml \
-- 
GitLab