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

The function computing the gas temperature should not modify the xpart.

parent 01a56b9d
No related branches found
No related tags found
1 merge request!697Add functions to calculate temperature of particles.
......@@ -653,7 +653,7 @@ float cooling_get_temperature(
const struct unit_system *restrict us,
const struct cosmology *restrict cosmo,
const struct cooling_function_data *restrict cooling,
const struct part *restrict p, struct xpart *restrict xp) {
const struct part *restrict p, const struct xpart *restrict xp) {
/* Get physical internal energy */
const float u = hydro_get_physical_internal_energy(p, xp, cosmo);
......
......@@ -64,7 +64,7 @@ float cooling_get_temperature(
const struct unit_system *restrict us,
const struct cosmology *restrict cosmo,
const struct cooling_function_data *restrict cooling,
const struct part *restrict p, struct xpart *restrict xp);
const struct part *restrict p, const struct xpart *restrict xp);
float cooling_get_radiated_energy(const struct xpart *restrict xp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment