Commit 55e29571 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Documentation fixes

parent 9813ef6e
......@@ -2339,6 +2339,8 @@ static bool hyperthreads_present(void) {
* @param nodeID The MPI rank of this node.
* @param policy The queuing policy to use.
* @param verbose Is this #engine talkative ?
* @param physical_constants The #phys_const used for this run.
* @param potential The properties of the external potential.
*/
void engine_init(struct engine *e, struct space *s,
......
......@@ -27,7 +27,7 @@
* This function only branches towards the potential chosen by the user.
*
* @param potential The properties of the external potential.
* @param phys_cont The physical constants in internal units.
* @param phys_const The physical constants in internal units.
* @param gp Pointer to the g-particle data.
*/
__attribute__((always_inline)) INLINE static float gravity_compute_timestep(
......
......@@ -52,8 +52,8 @@ struct external_potential {
* @brief Computes the time-step due to the acceleration from a point mass
*
* @param potential The properties of the externa potential.
* @param phys_cont The physical constants in internal units.
* @param gp Pointer to the g-particle data.
* @param phys_const The physical constants in internal units.
* @param g Pointer to the g-particle data.
*/
__attribute__((always_inline))
INLINE static float external_gravity_pointmass_timestep(
......@@ -87,8 +87,8 @@ __attribute__((always_inline))
* mass
*
* @param potential The proerties of the external potential.
* @param phys_cont The physical constants in internal units.
* @param gp Pointer to the g-particle data.
* @param phys_const The physical constants in internal units.
* @param g Pointer to the g-particle data.
*/
__attribute__((always_inline)) INLINE static void external_gravity_pointmass(
const struct external_potential* potential,
......
......@@ -101,10 +101,11 @@ const char runner_flip[27] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
/**
* @brief Calculate gravity acceleration from external potential
*
* @param runner task
* @param cell
* @param r runner task
* @param c cell
* @param timer 1 if the time is to be recorded.
*/
void runner_dograv_external(struct runner *r, struct cell *c) {
void runner_dograv_external(struct runner *r, struct cell *c, int timer) {
struct gpart *g, *gparts = c->gparts;
int i, k, gcount = c->gcount;
......@@ -115,7 +116,7 @@ void runner_dograv_external(struct runner *r, struct cell *c) {
/* Recurse? */
if (c->split) {
for (k = 0; k < 8; k++)
if (c->progeny[k] != NULL) runner_dograv_external(r, c->progeny[k]);
if (c->progeny[k] != NULL) runner_dograv_external(r, c->progeny[k], 0);
return;
}
......@@ -177,7 +178,7 @@ void runner_dograv_external(struct runner *r, struct cell *c) {
}
}
TIMER_TOC(timer_dograv_external);
if(timer) TIMER_TOC(timer_dograv_external);
}
/**
......@@ -566,7 +567,6 @@ void runner_dogsort(struct runner *r, struct cell *c, int flags, int clock) {
* @param c The cell.
* @param timer 1 if the time is to be recorded.
*/
void runner_doinit(struct runner *r, struct cell *c, int timer) {
struct part *const parts = c->parts;
......@@ -1292,7 +1292,7 @@ void *runner_main(void *data) {
runner_dograv_down(r, t->ci);
break;
case task_type_grav_external:
runner_dograv_external(r, t->ci);
runner_dograv_external(r, t->ci, 1);
break;
case task_type_part_sort:
space_do_parts_sort();
......
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