From 61b923844e368cfa69faaf973c2c9b398c1df47e Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Mon, 23 Jan 2017 18:55:10 +0000 Subject: [PATCH] Documentation, output header and Makefile update --- examples/main.c | 5 +++-- src/Makefile.am | 1 + src/engine.c | 6 +++--- src/stars/Default/star.h | 3 +-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/main.c b/examples/main.c index 4e3f8e3b6e..54438f739d 100644 --- a/examples/main.c +++ b/examples/main.c @@ -563,8 +563,9 @@ int main(int argc, char *argv[]) { /* Legend */ if (myrank == 0) - printf("# %6s %14s %14s %10s %10s %16s [%s]\n", "Step", "Time", "Time-step", - "Updates", "g-Updates", "Wall-clock time", clocks_getunit()); + printf("# %6s %14s %14s %10s %10s %10s %16s [%s]\n", "Step", "Time", + "Time-step", "Updates", "g-Updates", "s-Updates", "Wall-clock time", + clocks_getunit()); /* Main simulation loop */ for (int j = 0; !engine_is_done(&e) && e.step != nsteps; j++) { diff --git a/src/Makefile.am b/src/Makefile.am index 7fe3121258..885412888e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -78,6 +78,7 @@ nobase_noinst_HEADERS = align.h approx_math.h atomic.h cycle.h error.h inline.h hydro/Gizmo/hydro_debug.h hydro/Gizmo/hydro_part.h \ riemann/riemann_hllc.h riemann/riemann_trrs.h \ riemann/riemann_exact.h riemann/riemann_vacuum.h \ + stars.h stars_io.h \ stars/Default/star.h stars/Default/star_iact.h stars/Default/star_io.h \ stars/Default/star_debug.h stars/Default/star_part.h \ potential/none/potential.h potential/point_mass/potential.h \ diff --git a/src/engine.c b/src/engine.c index 4092d95a0a..c10659f969 100644 --- a/src/engine.c +++ b/src/engine.c @@ -3328,9 +3328,9 @@ void engine_init(struct engine *e, struct space *s, e->hydro_properties->delta_neighbours, e->hydro_properties->eta_neighbours); - fprintf(e->file_timesteps, "# %6s %14s %14s %10s %10s %16s [%s]\n", "Step", - "Time", "Time-step", "Updates", "g-Updates", "Wall-clock time", - clocks_getunit()); + fprintf(e->file_timesteps, "# %6s %14s %14s %10s %10s %10s %16s [%s]\n", + "Step", "Time", "Time-step", "Updates", "g-Updates", "s-Updates", + "Wall-clock time", clocks_getunit()); fflush(e->file_timesteps); } diff --git a/src/stars/Default/star.h b/src/stars/Default/star.h index 1f1b3940fe..61ae4aeb5c 100644 --- a/src/stars/Default/star.h +++ b/src/stars/Default/star.h @@ -59,7 +59,7 @@ __attribute__((always_inline)) INLINE static void star_init_spart( * @brief Sets the values to be predicted in the drifts to their values at a * kick time * - * @param s The particle. + * @param sp The particle. */ __attribute__((always_inline)) INLINE static void star_reset_predicted_values( struct spart* restrict sp) {} @@ -79,7 +79,6 @@ __attribute__((always_inline)) INLINE static void star_end_force( * * @param sp The particle to act upon * @param dt The time-step for this kick - * @param half_dt The half time-step for this kick */ __attribute__((always_inline)) INLINE static void star_kick_extra( struct spart* sp, float dt) {} -- GitLab