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
ab0491e9
Commit
ab0491e9
authored
Mar 03, 2017
by
Bert Vandenbroucke
Browse files
Made maximal signal velocity estimate for isothermal gas a bit more conservative.
parent
53b97792
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gizmo/hydro_iact.h
View file @
ab0491e9
...
...
@@ -233,7 +233,9 @@ __attribute__((always_inline)) INLINE static void runner_iact_fluxes_common(
/* calculate the maximal signal velocity */
if
(
Wi
[
0
]
>
0
.
0
f
&&
Wj
[
0
]
>
0
.
0
f
)
{
#ifdef EOS_ISOTHERMAL_GAS
vmax
=
2
.
*
const_isothermal_soundspeed
;
/* we use a value that is slightly higher than necessary, since the correct
value does not always work */
vmax
=
2
.
5
*
const_isothermal_soundspeed
;
#else
vmax
=
sqrtf
(
hydro_gamma
*
Wi
[
4
]
/
Wi
[
0
])
+
sqrtf
(
hydro_gamma
*
Wj
[
4
]
/
Wj
[
0
]);
...
...
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