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

Code formatting

parent f9f00bb4
No related branches found
No related tags found
1 merge request!217Disk patch
...@@ -47,8 +47,8 @@ gravity_compute_timestep_external(const struct external_potential* potential, ...@@ -47,8 +47,8 @@ gravity_compute_timestep_external(const struct external_potential* potential,
phys_const, gp)); phys_const, gp));
#endif #endif
#ifdef EXTERNAL_POTENTIAL_DISK_PATCH #ifdef EXTERNAL_POTENTIAL_DISK_PATCH
dt = dt = fminf(dt,
fmin(dt, external_gravity_disk_patch_timestep(potential, phys_const, gp)); external_gravity_disk_patch_timestep(potential, phys_const, gp));
#endif #endif
return dt; return dt;
} }
...@@ -135,7 +135,7 @@ __attribute__((always_inline)) INLINE static void gravity_end_force( ...@@ -135,7 +135,7 @@ __attribute__((always_inline)) INLINE static void gravity_end_force(
* @param gp The particle to act upon. * @param gp The particle to act upon.
*/ */
__attribute__((always_inline)) INLINE static void external_gravity( __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) { const struct phys_const* const phys_const, struct gpart* gp) {
#ifdef EXTERNAL_POTENTIAL_POINTMASS #ifdef EXTERNAL_POTENTIAL_POINTMASS
......
...@@ -72,7 +72,8 @@ struct external_potential { ...@@ -72,7 +72,8 @@ struct external_potential {
#ifdef EXTERNAL_POTENTIAL_DISK_PATCH #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 * 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, ...@@ -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 * See Creasey, Theuns & Bower, 2013, MNRAS, Volume 429, Issue 3, p.1922-1948
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment