From 3735abd8864467d0407a3d532b9b8311f2ac3a13 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 18 Apr 2019 22:42:12 +0200 Subject: [PATCH] Code formatting and documentation fixes. --- examples/main.c | 2 +- src/cell.c | 4 ++-- src/collectgroup.c | 1 + src/engine.c | 2 +- src/runner.c | 8 ++++---- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/main.c b/examples/main.c index 8771a59031..6bf9d4e793 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1152,7 +1152,7 @@ int main(int argc, char *argv[]) { task_dump_stats(dumpfile, &e, /* header = */ 0, /* allranks = */ 1); } - /* Dump memory use report if collected. */ + /* Dump memory use report if collected. */ #ifdef SWIFT_MEMUSE_REPORTS { char dumpfile[40]; diff --git a/src/cell.c b/src/cell.c index 716869c28e..9e05d555c7 100644 --- a/src/cell.c +++ b/src/cell.c @@ -4945,8 +4945,8 @@ struct spart *cell_add_spart(struct engine *e, struct cell *const c) { } } - /* Check that the cell was indeed drifted to this point to avoid future - * issues */ + /* Check that the cell was indeed drifted to this point to avoid future + * issues */ #ifdef SWIFT_DEBUG_CHECKS if (top->hydro.super != NULL && top->stars.count > 0 && top->stars.ti_old_part != e->ti_current) { diff --git a/src/collectgroup.c b/src/collectgroup.c index 1864ba55f6..a9fe2da8ba 100644 --- a/src/collectgroup.c +++ b/src/collectgroup.c @@ -169,6 +169,7 @@ void collectgroup1_apply(struct collectgroup1 *grp1, struct engine *e) { * @param total_nr_cells total number of all cells on rank. * @param total_nr_tasks total number of tasks on rank. * @param tasks_per_cell the used number of tasks per cell. + * @param sfh The star formation history logger */ void collectgroup1_init( struct collectgroup1 *grp1, size_t updated, size_t g_updated, diff --git a/src/engine.c b/src/engine.c index abb43cd600..42de0494a3 100644 --- a/src/engine.c +++ b/src/engine.c @@ -3953,7 +3953,7 @@ void engine_check_for_dumps(struct engine *e) { #endif } - /* Dump... */ + /* Dump... */ #ifdef WITH_LOGGER /* Write a file containing the offsets in the particle logger. */ engine_dump_index(e); diff --git a/src/runner.c b/src/runner.c index b7595f6ee7..ec5a0e9aae 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1608,10 +1608,10 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) { if (((p->h >= hydro_h_max) && (f < 0.f)) || ((p->h <= hydro_h_min) && (f > 0.f))) { - /* We have a particle whose smoothing length is already set (wants - * to be larger but has already hit the maximum OR wants to be - * smaller but has already reached the minimum). So, just tidy up as - * if the smoothing length had converged correctly */ + /* We have a particle whose smoothing length is already set (wants + * to be larger but has already hit the maximum OR wants to be + * smaller but has already reached the minimum). So, just tidy up as + * if the smoothing length had converged correctly */ #ifdef EXTRA_HYDRO_LOOP -- GitLab