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

Code formatting

parent 69205ae5
Branches
Tags
1 merge request!942EAGLE star formation update
...@@ -199,8 +199,8 @@ INLINE static double EOS_pressure(const double n_H, ...@@ -199,8 +199,8 @@ INLINE static double EOS_pressure(const double n_H,
* @return The pressure on the equation of state in internal units. * @return The pressure on the equation of state in internal units.
*/ */
INLINE static double EOS_entropy(const double n_H, INLINE static double EOS_entropy(const double n_H,
const struct star_formation* starform, const struct star_formation* starform,
const double rho) { const double rho) {
return gas_entropy_from_pressure(rho, EOS_pressure(n_H, starform)); return gas_entropy_from_pressure(rho, EOS_pressure(n_H, starform));
} }
...@@ -268,9 +268,8 @@ INLINE static int star_formation_is_star_forming( ...@@ -268,9 +268,8 @@ INLINE static int star_formation_is_star_forming(
/* Calculate the entropy that will be used to calculate /* Calculate the entropy that will be used to calculate
* the off-set, this is the maximum between the entropy * the off-set, this is the maximum between the entropy
* floor and the star formation polytropic EOS. */ * floor and the star formation polytropic EOS. */
const double entropy_eos = const double entropy_eos = max(entropy_floor(p, cosmo, entropy_floor_props),
max(entropy_floor(p, cosmo, entropy_floor_props), EOS_entropy(n_H, starform, physical_density));
EOS_entropy(n_H, starform, physical_density));
/* Check the Scahye & Dalla Vecchia 2012 EOS-based temperature critrion */ /* Check the Scahye & Dalla Vecchia 2012 EOS-based temperature critrion */
return (entropy < return (entropy <
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment