Skip to content
Snippets Groups Projects
Commit 0fa621b1 authored by Josh Borrow's avatar Josh Borrow
Browse files

Moved to using the smoothed pressure

parent 6b2df9b7
No related branches found
No related tags found
1 merge request!540Add Pressure-Energy (P-U) SPH
...@@ -88,7 +88,7 @@ hydro_get_physical_internal_energy(const struct part *restrict p, ...@@ -88,7 +88,7 @@ hydro_get_physical_internal_energy(const struct part *restrict p,
__attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure( __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure(
const struct part *restrict p) { const struct part *restrict p) {
return gas_pressure_from_internal_energy(p->rho, p->u); return p->pressure_bar;
} }
/** /**
...@@ -103,8 +103,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure( ...@@ -103,8 +103,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure(
__attribute__((always_inline)) INLINE static float hydro_get_physical_pressure( __attribute__((always_inline)) INLINE static float hydro_get_physical_pressure(
const struct part *restrict p, const struct cosmology *cosmo) { const struct part *restrict p, const struct cosmology *cosmo) {
return cosmo->a_factor_pressure * return cosmo->a_factor_pressure * p->pressure_bar;
gas_pressure_from_internal_energy(p->rho, p->u);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment