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
9bd7e668
Commit
9bd7e668
authored
Aug 08, 2016
by
Matthieu Schaller
Browse files
Better variable name in adiabatic_index calculation.
parent
cb25dce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/adiabatic_index.h
View file @
9bd7e668
...
...
@@ -124,8 +124,8 @@ __attribute__((always_inline)) INLINE static float pow_minus_gamma_minus_one(
#if defined(HYDRO_GAMMA_5_3)
const
float
inv_
cbrt
=
1
.
f
/
cbrtf
(
x
);
/* x^(-1/3) */
return
inv_cbrt
*
inv_cbrt
;
/* x^(-2/3) */
const
float
cbrt
_inv
=
1
.
f
/
cbrtf
(
x
);
/* x^(-1/3) */
return
cbrt_inv
*
cbrt_inv
;
/* x^(-2/3) */
#elif defined(HYDRO_GAMMA_4_3)
...
...
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