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 07993f19d40a9a3b9a4b86c9dd8c44f7e6fa3d7e..976119f0a312c5acc81fab943ba3cf5769102269 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 f6adfcececf4923485c0deabd97e9af9a6f64b05..28a3cc0910f986f84bcd603091543643356f1c4a 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 e93fa348442281bd3b54e9dad6931ecc490578b9..4da84788a485dacd2103fe85ad3e729ade6b582a 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 \