Skip to content
GitLab
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
167172c9
Commit
167172c9
authored
May 15, 2018
by
Josh Borrow
Browse files
Added extra factor of gamma in the soundspeed
parent
8f7b101c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/PressureEnergy/hydro.h
View file @
167172c9
...
...
@@ -153,7 +153,7 @@ hydro_get_comoving_soundspeed(const struct part *restrict p) {
/* Compute the sound speed -- see theory section for justification */
/* IDEAL GAS ONLY -- P-U does not work with generic EoS. */
const
float
square_rooted
=
sqrtf
(
p
->
rho
/
p
->
pressure_bar
);
const
float
square_rooted
=
sqrtf
(
hydro_gamma
*
p
->
rho
/
p
->
pressure_bar
);
return
p
->
u
*
hydro_gamma_minus_one
*
square_rooted
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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