From 39f17561f3f7032b352bb91910b4ceee5c0f75eb Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Thu, 28 Jul 2016 11:01:08 +0100 Subject: [PATCH] Accumulate entropy not entropy per unit mass --- src/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner.c b/src/runner.c index e845d29288..63243ab66d 100644 --- a/src/runner.c +++ b/src/runner.c @@ -672,7 +672,7 @@ void runner_do_drift(struct runner *r, struct cell *c, int timer) { e_int += m * hydro_get_internal_energy(p, half_dt); /* Collect entropy */ - entropy += hydro_get_entropy(p, half_dt); + entropy += m * hydro_get_entropy(p, half_dt); } /* Now, get the maximal particle motion from its square */ -- GitLab