Skip to content
Snippets Groups Projects
Commit 2ece5fd6 authored by Darwin's avatar Darwin
Browse files

Merge with master

parents b8b5815d 24674a02
No related branches found
No related tags found
2 merge requests!1943GEAR sink improvements,!1824Sink : bugs fixing
......@@ -526,7 +526,8 @@ void cooling_cool_part(const struct phys_const *phys_const,
hydro_set_physical_internal_energy_dt(p, cosmo, cooling_du_dt);
/* Store the radiated energy */
xp->cooling_data.radiated_energy -= hydro_get_mass(p) * cooling_du_dt * dt;
xp->cooling_data.radiated_energy -=
hydro_get_mass(p) * (cooling_du_dt - hydro_du_dt) * dt;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment