Commit 178f837b authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Better name for the functions computing the subgrid properties of a particle

parent d3566eca
......@@ -458,8 +458,8 @@ void cooling_cool_part(const struct phys_const *phys_const,
if (dt == 0.) {
/* But we still set the subgrid properties to a valid state */
cooling_set_subgrid_properties(phys_const, us, cosmo, hydro_properties,
floor_props, cooling, p, xp);
cooling_set_particle_subgrid_properties(
phys_const, us, cosmo, hydro_properties, floor_props, cooling, p, xp);
return;
}
......@@ -615,8 +615,8 @@ void cooling_cool_part(const struct phys_const *phys_const,
xp->cooling_data.radiated_energy -= hydro_get_mass(p) * (u_final - u_0);
/* set subgrid properties and hydrogen fractions */
cooling_set_subgrid_properties(phys_const, us, cosmo, hydro_properties,
floor_props, cooling, p, xp);
cooling_set_particle_subgrid_properties(
phys_const, us, cosmo, hydro_properties, floor_props, cooling, p, xp);
}
/**
......@@ -680,7 +680,7 @@ __attribute__((always_inline)) INLINE void cooling_first_init_part(
* @param p The #part.
* @param xp The #xpart.
*/
float cooling_get_subgrid_HI_fraction(
float cooling_get_particle_subgrid_HI_fraction(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......@@ -733,7 +733,7 @@ float cooling_get_subgrid_HI_fraction(
* @param p The #part.
* @param xp The #xpart.
*/
float cooling_get_subgrid_HII_fraction(
float cooling_get_particle_subgrid_HII_fraction(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......@@ -786,7 +786,7 @@ float cooling_get_subgrid_HII_fraction(
* @param p The #part.
* @param xp The #xpart.
*/
float cooling_get_subgrid_H2_fraction(
float cooling_get_particle_subgrid_H2_fraction(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......@@ -838,7 +838,7 @@ float cooling_get_subgrid_H2_fraction(
* @param p The #part.
* @param xp The #xpart.
*/
float cooling_get_subgrid_temperature(
float cooling_get_particle_subgrid_temperature(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......@@ -892,7 +892,7 @@ float cooling_get_subgrid_temperature(
* @param p The #part.
* @param xp The #xpart.
*/
float cooling_get_subgrid_density(
float cooling_get_particle_subgrid_density(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......@@ -941,7 +941,7 @@ float cooling_get_subgrid_density(
* @param p Pointer to the particle data.
* @param xp Pointer to the extended particle data.
*/
void cooling_set_subgrid_properties(
void cooling_set_particle_subgrid_properties(
const struct phys_const *phys_const, const struct unit_system *us,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......
......@@ -68,42 +68,42 @@ float cooling_get_temperature(const struct phys_const *phys_const,
const struct cooling_function_data *cooling,
const struct part *p, const struct xpart *xp);
float cooling_get_subgrid_HI_fraction(
float cooling_get_particle_subgrid_HI_fraction(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
const struct cooling_function_data *cooling, const struct part *p,
const struct xpart *xp);
float cooling_get_subgrid_HII_fraction(
float cooling_get_particle_subgrid_HII_fraction(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
const struct cooling_function_data *cooling, const struct part *p,
const struct xpart *xp);
float cooling_get_subgrid_H2_fraction(
float cooling_get_particle_subgrid_H2_fraction(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
const struct cooling_function_data *cooling, const struct part *p,
const struct xpart *xp);
float cooling_get_subgrid_density(
float cooling_get_particle_subgrid_density(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
const struct cooling_function_data *cooling, const struct part *p,
const struct xpart *xp);
float cooling_get_subgrid_temperature(
float cooling_get_particle_subgrid_temperature(
const struct unit_system *us, const struct phys_const *phys_const,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
const struct cooling_function_data *cooling, const struct part *p,
const struct xpart *xp);
void cooling_set_subgrid_properties(
void cooling_set_particle_subgrid_properties(
const struct phys_const *phys_const, const struct unit_system *us,
const struct cosmology *cosmo, const struct hydro_props *hydro_props,
const struct entropy_floor_properties *floor_props,
......
......@@ -76,7 +76,7 @@ INLINE static void convert_part_sub_T(const struct engine* e,
const struct part* p,
const struct xpart* xp, float* ret) {
ret[0] = cooling_get_subgrid_temperature(
ret[0] = cooling_get_particle_subgrid_temperature(
e->internal_units, e->physical_constants, e->cosmology,
e->hydro_properties, e->entropy_floor, e->cooling_func, p, xp);
}
......@@ -85,7 +85,7 @@ INLINE static void convert_part_sub_rho(const struct engine* e,
const struct part* p,
const struct xpart* xp, float* ret) {
ret[0] = cooling_get_subgrid_density(
ret[0] = cooling_get_particle_subgrid_density(
e->internal_units, e->physical_constants, e->cosmology,
e->hydro_properties, e->entropy_floor, e->cooling_func, p, xp);
}
......@@ -95,15 +95,15 @@ INLINE static void convert_part_sub_species_frac(const struct engine* e,
const struct xpart* xp,
float* ret) {
ret[0] = cooling_get_subgrid_HI_fraction(
ret[0] = cooling_get_particle_subgrid_HI_fraction(
e->internal_units, e->physical_constants, e->cosmology,
e->hydro_properties, e->entropy_floor, e->cooling_func, p, xp);
ret[1] = cooling_get_subgrid_HII_fraction(
ret[1] = cooling_get_particle_subgrid_HII_fraction(
e->internal_units, e->physical_constants, e->cosmology,
e->hydro_properties, e->entropy_floor, e->cooling_func, p, xp);
ret[2] = cooling_get_subgrid_H2_fraction(
ret[2] = cooling_get_particle_subgrid_H2_fraction(
e->internal_units, e->physical_constants, e->cosmology,
e->hydro_properties, e->entropy_floor, e->cooling_func, p, xp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment