Commit 9c308b79 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent f9f00bb4
......@@ -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
......
......@@ -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
*
......
Supports Markdown
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