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

Ported changes to other hydro schemes.

parent 1c6b831c
No related branches found
No related tags found
1 merge request!167Kick task for fixdt and proper treatment of conserved quantities
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment