From 0ca7529f0d975bb531d9fa1b10bd8094932c8ee1 Mon Sep 17 00:00:00 2001
From: Folkert Nobels <nobels@strw.leidenuniv.nl>
Date: Wed, 28 Nov 2018 17:08:24 +0100
Subject: [PATCH] Update star formation routine

---
 src/starformation/schaye08/starformation.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/starformation/schaye08/starformation.h b/src/starformation/schaye08/starformation.h
index 0bb820d6cc..eb569083b9 100644
--- a/src/starformation/schaye08/starformation.h
+++ b/src/starformation/schaye08/starformation.h
@@ -97,8 +97,8 @@ static int starformation_potential_to_become_star(
   
   /* Calculate the internal energy using the density and entropy */
   /* Ask Matthieu about p->entropy vs xp->entropy_full */
-  const double internal_energy = gas_internal_energy_from_entropy(
-  p->rho, p->entropy);
+  const double internal_energy = hydro_get_physical_internal_energy(
+  p, xp, cosmo);
 
   /* Calculate the temperature over mu of the gas */
   /* Temporary part of the code!! */
-- 
GitLab