From 1f30c98af08d8b11c74a41b44377bf2e8fa9f604 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Tue, 10 Sep 2019 10:11:42 +0100 Subject: [PATCH] Avoid integer-division in the script making ICs for the square test. --- .../HydroTests/SquareTest_2D/makeICDifferentMasses.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/HydroTests/SquareTest_2D/makeICDifferentMasses.py b/examples/HydroTests/SquareTest_2D/makeICDifferentMasses.py index 6c7af6d33e..1f6885a285 100644 --- a/examples/HydroTests/SquareTest_2D/makeICDifferentMasses.py +++ b/examples/HydroTests/SquareTest_2D/makeICDifferentMasses.py @@ -26,11 +26,11 @@ from numpy import * # Parameters L = 2 * 64 # Number of particles on the side gamma = 5.0 / 3.0 # Gas adiabatic index -rho0 = 4 # Gas central density -rho1 = 1 # Gas outskirt density -P0 = 2.5 # Gas central pressure -P1 = 2.5 # Gas central pressure -vx = 0.0 # Random velocity for all particles +rho0 = 4.0 # Gas central density +rho1 = 1.0 # Gas outskirt density +P0 = 2.5 # Gas central pressure +P1 = 2.5 # Gas central pressure +vx = 0.0 # Random velocity for all particles vy = 0.0 fileOutputName = "square.hdf5" # --------------------------------------------------- -- GitLab