From be40366adb06480161887dbea11d31ba55d788ad Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Sat, 20 Jan 2018 11:47:41 +0100 Subject: [PATCH] Always print the cooling and external potential information at start-up --- examples/main.c | 4 ++-- src/hydro/Gizmo/hydro_gradients.h | 2 +- src/hydro/Gizmo/hydro_slope_limiters.h | 2 +- src/hydro/Gizmo/hydro_unphysical.h | 2 +- src/hydro/Gizmo/hydro_velocities.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/main.c b/examples/main.c index 42abab6240..716a3922a0 100644 --- a/examples/main.c +++ b/examples/main.c @@ -605,12 +605,12 @@ int main(int argc, char *argv[]) { struct external_potential potential; if (with_external_gravity) potential_init(params, &prog_const, &us, &s, &potential); - if (with_external_gravity && myrank == 0) potential_print(&potential); + if (myrank == 0) potential_print(&potential); /* Initialise the cooling function properties */ struct cooling_function_data cooling_func; if (with_cooling) cooling_init(params, &us, &prog_const, &cooling_func); - if (with_cooling && myrank == 0) cooling_print(&cooling_func); + if (myrank == 0) cooling_print(&cooling_func); /* Initialise the chemistry */ struct chemistry_data chemistry; diff --git a/src/hydro/Gizmo/hydro_gradients.h b/src/hydro/Gizmo/hydro_gradients.h index 8513308cc9..46cafcc31e 100644 --- a/src/hydro/Gizmo/hydro_gradients.h +++ b/src/hydro/Gizmo/hydro_gradients.h @@ -159,4 +159,4 @@ __attribute__((always_inline)) INLINE static void hydro_gradients_predict( gizmo_check_physical_quantity("pressure", Wj[4]); } -#endif /* SWIFT_HYDRO_GIZMO_GRADIENTS_H */ +#endif /* SWIFT_HYDRO_GIZMO_GRADIENTS_H */ diff --git a/src/hydro/Gizmo/hydro_slope_limiters.h b/src/hydro/Gizmo/hydro_slope_limiters.h index acf3364a05..78f2785cda 100644 --- a/src/hydro/Gizmo/hydro_slope_limiters.h +++ b/src/hydro/Gizmo/hydro_slope_limiters.h @@ -91,4 +91,4 @@ __attribute__((always_inline)) INLINE static void hydro_slope_limit_cell( #endif -#endif /* SWIFT_HYDRO_SLOPE_LIMITERS_H */ +#endif /* SWIFT_HYDRO_SLOPE_LIMITERS_H */ diff --git a/src/hydro/Gizmo/hydro_unphysical.h b/src/hydro/Gizmo/hydro_unphysical.h index 1a8bf334f8..f1e64a281c 100644 --- a/src/hydro/Gizmo/hydro_unphysical.h +++ b/src/hydro/Gizmo/hydro_unphysical.h @@ -52,4 +52,4 @@ #endif // defined(GIZMO_UNPHYSICAL_ERROR) || defined(GIZMO_UNPHYSICAL_RESCUE) -#endif /* SWIFT_HYDRO_UNPHYSICAL_H */ +#endif /* SWIFT_HYDRO_UNPHYSICAL_H */ diff --git a/src/hydro/Gizmo/hydro_velocities.h b/src/hydro/Gizmo/hydro_velocities.h index 549d8eac34..2f7bc0d54d 100644 --- a/src/hydro/Gizmo/hydro_velocities.h +++ b/src/hydro/Gizmo/hydro_velocities.h @@ -152,4 +152,4 @@ __attribute__((always_inline)) INLINE static void hydro_velocities_set( } } -#endif /* SWIFT_HYDRO_VELOCITIES_H */ +#endif /* SWIFT_HYDRO_VELOCITIES_H */ -- GitLab