Skip to content
Snippets Groups Projects
Commit ba607295 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Simplify notation in the adiabatic index powers

parent 2bd3be76
No related tags found
1 merge request!252Implementation Pressure entropy SPH
...@@ -410,7 +410,7 @@ __attribute__((always_inline)) INLINE static float pow_one_over_gamma(float x) { ...@@ -410,7 +410,7 @@ __attribute__((always_inline)) INLINE static float pow_one_over_gamma(float x) {
#if defined(HYDRO_GAMMA_5_3) #if defined(HYDRO_GAMMA_5_3)
return powf(x, 0.6f); /* x^(3/5) */ return powf(x, hydro_one_over_gamma); /* x^(3/5) */
#elif defined(HYDRO_GAMMA_7_5) #elif defined(HYDRO_GAMMA_7_5)
...@@ -418,7 +418,7 @@ __attribute__((always_inline)) INLINE static float pow_one_over_gamma(float x) { ...@@ -418,7 +418,7 @@ __attribute__((always_inline)) INLINE static float pow_one_over_gamma(float x) {
#elif defined(HYDRO_GAMMA_4_3) #elif defined(HYDRO_GAMMA_4_3)
return powf(x, 0.75f); /* x^(3/4) */ return powf(x, hydro_one_over_gamma); /* x^(3/4) */
#elif defined(HYDRO_GAMMA_2_1) #elif defined(HYDRO_GAMMA_2_1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment