Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
cbe7789f
Commit
cbe7789f
authored
Sep 10, 2019
by
Matthieu Schaller
Browse files
Avoid integer-division in the script making ICs for the square test.
parent
1f30c98a
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/HydroTests/SquareTest_2D/makeIC.py
View file @
cbe7789f
...
...
@@ -25,8 +25,8 @@ from numpy import *
# Parameters
L
=
64
# Number of particles on the side
gamma
=
5.
/
3.
# Gas adiabatic index
rho0
=
4
# Gas central density
rho1
=
1
# Gas outskirt density
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment