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

Updated documentation and function signature for kick_extra in PU

parent 45bfc03c
No related branches found
No related tags found
1 merge request!611Cosmology pressure energy
...@@ -580,12 +580,16 @@ __attribute__((always_inline)) INLINE static void hydro_end_force( ...@@ -580,12 +580,16 @@ __attribute__((always_inline)) INLINE static void hydro_end_force(
* @param p The particle to act upon. * @param p The particle to act upon.
* @param xp The particle extended data to act upon. * @param xp The particle extended data to act upon.
* @param dt_therm The time-step for this kick (for thermodynamic quantities). * @param dt_therm The time-step for this kick (for thermodynamic quantities).
* @param dt_grav The time-step for this kick (for gravity quantities).
* @param dt_hydro The time-step for this kick (for hydro quantities).
* @param dt_kick_corr The time-step for this kick (for gravity corrections).
* @param cosmo The cosmological model.
* @param hydro_props The constants used in the scheme
*/ */
__attribute__((always_inline)) INLINE static void hydro_kick_extra( __attribute__((always_inline)) INLINE static void hydro_kick_extra(
struct part *restrict p, struct xpart *restrict xp, float dt_therm, struct part *restrict p, struct xpart *restrict xp, float dt_therm,
float dt_grav, float dt_hydro, float dt_kick_corr, float dt_grav, float dt_hydro, float dt_kick_corr,
const struct cosmology *cosmo, const struct cosmology *cosmo, const struct hydro_props *hydro_props) {
const struct hydro_props *restrict hydro_properties) {
/* Do not decrease the energy by more than a factor of 2*/ /* Do not decrease the energy by more than a factor of 2*/
if (dt_therm > 0. && p->u_dt * dt_therm < -0.5f * xp->u_full) { if (dt_therm > 0. && p->u_dt * dt_therm < -0.5f * xp->u_full) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment