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

Use EoS in PU

parent c18d56e1
No related branches found
No related tags found
1 merge request!885Gear merge pressure floor and GEAR star formation
......@@ -225,7 +225,7 @@ __attribute__((always_inline)) INLINE static void hydro_update_soundspeed(
/* IDEAL GAS ONLY -- P-U does not work with generic EoS. */
const float comoving_pressure =
pressure_floor_get_comoving_pressure(p, p->pressure_bar, cosmo);
p->force.soundspeed = sqrtf(hydro_gamma * comoving_pressure / p->rho);
p->force.soundspeed = gas_soundspeed_from_pressure(p->rho, comoving_pressure);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment