Commit 7ff5c094 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Ported changes to other hydro schemes.

parent 1c6b831c
......@@ -246,9 +246,10 @@ __attribute__((always_inline))
* @brief Returns the internal energy of a particle
*
* @param p The particle of interest
* @param dt Time since the last kick
*/
__attribute__((always_inline))
INLINE static float hydro_get_internal_energy(struct part* p) {
__attribute__((always_inline)) INLINE static float hydro_get_internal_energy(
const struct part* p, float dt) {
return p->u;
}
......@@ -239,9 +239,10 @@ __attribute__((always_inline))
* energy from the thermodynamic variable.
*
* @param p The particle of interest
* @param dt Time since the last kick
*/
__attribute__((always_inline))
INLINE static float hydro_get_internal_energy(struct part* p) {
__attribute__((always_inline)) INLINE static float hydro_get_internal_energy(
const struct part* p, float dt) {
return p->u;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment