diff --git a/src/gravity/Default/gravity.h b/src/gravity/Default/gravity.h index d9326579f4dff88677ce8c53f0b95f5f0ca03462..9c56549d008578b435f48d827558b6bd36cf0df8 100644 --- a/src/gravity/Default/gravity.h +++ b/src/gravity/Default/gravity.h @@ -47,8 +47,8 @@ gravity_compute_timestep_external(const struct external_potential* potential, phys_const, gp)); #endif #ifdef EXTERNAL_POTENTIAL_DISK_PATCH - dt = - fmin(dt, external_gravity_disk_patch_timestep(potential, phys_const, gp)); + dt = fminf(dt, + external_gravity_disk_patch_timestep(potential, phys_const, gp)); #endif return dt; } @@ -135,7 +135,7 @@ __attribute__((always_inline)) INLINE static void gravity_end_force( * @param gp The particle to act upon. */ __attribute__((always_inline)) INLINE static void external_gravity( - double time, const struct external_potential* potential, + double time, const struct external_potential* potential, const struct phys_const* const phys_const, struct gpart* gp) { #ifdef EXTERNAL_POTENTIAL_POINTMASS diff --git a/src/potentials.h b/src/potentials.h index 934458c813a4ca08fea67d36d5f820606cdb4ad6..1771e5ea2fdf017503915f03c7241046e5d06a95 100644 --- a/src/potentials.h +++ b/src/potentials.h @@ -72,7 +72,8 @@ struct external_potential { #ifdef EXTERNAL_POTENTIAL_DISK_PATCH /** - * @brief Computes the time-step from the acceleration due to a hydrostatic disk. + * @brief Computes the time-step from the acceleration due to a hydrostatic + * disk. * * See Creasey, Theuns & Bower, 2013, MNRAS, Volume 429, Issue 3, p.1922-1948 * @@ -129,7 +130,8 @@ external_gravity_disk_patch_timestep(const struct external_potential* potential, } /** - * @brief Computes the gravitational acceleration along z due to a hydrostatic disk + * @brief Computes the gravitational acceleration along z due to a hydrostatic + * disk * * See Creasey, Theuns & Bower, 2013, MNRAS, Volume 429, Issue 3, p.1922-1948 *