From bebc280f1c8a2e81bb76b26ade94a5728955f981 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Wed, 15 May 2019 15:14:37 +0100 Subject: [PATCH] Removed the unusued function hydro_reion_heating() --- src/hydro/PressureEnergy/hydro.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/hydro/PressureEnergy/hydro.h b/src/hydro/PressureEnergy/hydro.h index dd8e1562c7..1691781a12 100644 --- a/src/hydro/PressureEnergy/hydro.h +++ b/src/hydro/PressureEnergy/hydro.h @@ -910,22 +910,4 @@ hydro_set_init_internal_energy(struct part *p, float u_init) { __attribute__((always_inline)) INLINE static void hydro_remove_part( const struct part *p, const struct xpart *xp) {} -/** - * @brief Inputs extra heat to a particle at redshift of reionization - * - * We assume a constant density. - * @param p The particle of interest - * @param xp The extended particle data - * @param cosmo Cosmology data structure - * @param extra_heat The extra internal energy given to the particle. - */ -__attribute__((always_inline)) INLINE static void hydro_reion_heating( - struct part *p, struct xpart *xp, const struct cosmology *cosmo, - float extra_heat) { - - const float old_u = xp->u_full * cosmo->a_factor_internal_energy; - const float new_u = old_u + extra_heat; - xp->u_full = new_u / cosmo->a_factor_internal_energy; -} - #endif /* SWIFT_PRESSURE_ENERGY_HYDRO_H */ -- GitLab