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

Accumulate entropy not entropy per unit mass

parent 7fc374ab
No related branches found
No related tags found
1 merge request!210Correct the equation for the entropy time derivative in GADGET2_SPH
...@@ -672,7 +672,7 @@ void runner_do_drift(struct runner *r, struct cell *c, int timer) { ...@@ -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); e_int += m * hydro_get_internal_energy(p, half_dt);
/* Collect entropy */ /* 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 */ /* Now, get the maximal particle motion from its square */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment