From b0e6e330325d821cf452f5fbdcc4f60a629ec900 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sat, 13 Jul 2024 14:33:00 +0200 Subject: [PATCH] Code formatting --- src/common_io_fields.c | 6 +++--- src/scheduler.c | 3 ++- src/space_getsid.h | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/common_io_fields.c b/src/common_io_fields.c index f30d95d002..6ca66e11fe 100644 --- a/src/common_io_fields.c +++ b/src/common_io_fields.c @@ -400,9 +400,9 @@ void io_write_output_field_parameter(const char* filename, int with_cosmology, strcpy(&comment_write_buffer[PARSER_MAX_LINE_SIZE / 2 - 4], "..."); } - fprintf(file, " %s_%s: %s # (%dD - %zd bytes / dim) %s : %s\n", list[i].name, - part_type_names[ptype], "on", list[i].dimension, io_sizeof_type(list[i].type), - comment_write_buffer, unit_buffer); + fprintf(file, " %s_%s: %s # (%dD - %zd bytes / dim) %s : %s\n", + list[i].name, part_type_names[ptype], "on", list[i].dimension, + io_sizeof_type(list[i].type), comment_write_buffer, unit_buffer); } fprintf(file, "\n"); diff --git a/src/scheduler.c b/src/scheduler.c index 980f83c86b..8a8c3c0240 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -1374,7 +1374,8 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) { scheduler_addtask(s, task_type_pair, t->subtype, 0, 0, ci->progeny[j], cj->progeny[k]); scheduler_splittask_hydro(tl, s); - tl->flags = space_getsid_and_swap_cells(s->space, &t->ci, &t->cj, shift); + tl->flags = space_getsid_and_swap_cells(s->space, &t->ci, + &t->cj, shift); } } } /* pair interaction? */ diff --git a/src/space_getsid.h b/src/space_getsid.h index 40cdc1c911..df81615d3c 100644 --- a/src/space_getsid.h +++ b/src/space_getsid.h @@ -43,9 +43,9 @@ * * @return The shift ID and set shift, may or may not swap ci and cj. */ -__attribute__((always_inline, nonnull)) INLINE static int space_getsid_and_swap_cells( - const struct space *s, struct cell **ci, struct cell **cj, - double shift[3]) { +__attribute__((always_inline, nonnull)) INLINE static int +space_getsid_and_swap_cells(const struct space *s, struct cell **ci, + struct cell **cj, double shift[3]) { /* Get the relative distance between the pairs, wrapping. */ const int periodic = s->periodic; -- GitLab