Commit 39f17561 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Accumulate entropy not entropy per unit mass

parent 7fc374ab
......@@ -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 */
......
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