Skip to content
Snippets Groups Projects
Commit b6dfbb37 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Fix PU soundspeed

parent fa8c771d
Branches
Tags
1 merge request!885Gear merge pressure floor and GEAR star formation
......@@ -239,10 +239,8 @@ __attribute__((always_inline)) INLINE static float
hydro_get_physical_soundspeed(const struct part *restrict p,
const struct cosmology *cosmo) {
const float phys_rho = hydro_get_physical_density(p, cosmo);
return pressure_floor_get_physical_pressure(
p, phys_rho, cosmo->a_factor_sound_speed * p->force.soundspeed, cosmo);
/* The pressure floor is already included in p->force.soundspeed */
return cosmo->a_factor_sound_speed * p->force.soundspeed;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment